Missing redraw when changing 'ff'

4 views
Skip to first unread message

Ben Schmidt

unread,
Feb 9, 2010, 10:01:11 PM2/9/10
to vim...@googlegroups.com, Bram Moolenaar
Hi, Bram,

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.

ff_redraw_and_ascii_fix.patch

Bram Moolenaar

unread,
Feb 11, 2010, 11:03:25 AM2/11/10
to Ben Schmidt, vim...@googlegroups.com

Ben Schmidt wrote:

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 ///

Ben Schmidt

unread,
Feb 11, 2010, 11:29:30 PM2/11/10
to Bram Moolenaar, vim...@googlegroups.com
On 12/02/10 3:03 AM, Bram Moolenaar wrote:
> Ben Schmidt wrote:
>
>> 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.
>
> Thanks. I'll make it a bit more efficient, most people only switch
> between "unix" and "dos" and don't need a redraw.

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.


Reply all
Reply to author
Forward
0 new messages