I think the idea to have 'sw' set to zero behave like it's set to 'ts'
makes a lot of sense.
In your patch you have an awful lot of:
sw = curbuf->b_p_sw ? curbuf->b_p_sw : curbuf->b_p_ts;
I think we should have a function get_sw_value(); Calling a function
without arguments is efficient, no need to have this code in many
places. It appears curbuf is used in all cases.
Can you also make a patch for the help?
--
hundred-and-one symptoms of being an internet addict:
219. Your spouse has his or her lawyer deliver the divorce papers...
via e-mail.
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language --
http://www.Zimbu.org ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///