I'm getting back into doing some Vim coding, and mailing list
interaction and so on, and have come across this old patch (attached;
originally on vim_use).
The changes to ex_cmds.c are obsoleted by patch 7.2.082, but the change
to option.c is still relevant.
The problem is that when 'ff' is changed, the screen is not redrawn, so
any ^J or ^M in the buffer are incorrectly displayed until you scroll or
redraw.
Ben.
Thanks. I'll make it a bit more efficient, most people only switch
between "unix" and "dos" and don't need a redraw.
--
hundred-and-one symptoms of being an internet addict:
217. Your sex life has drastically improved...so what if it's only cyber-sex!
/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Yes, that would be better. Mac line endings are rare, and becoming
rarer.
Mind you, changing 'ff' is pretty rare in itself. Plenty of other things
trigger redraws that happen a lot more often.
Ben.