[patch] update display of concealed items in current line when changing 'modifiable' option

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[patch] update display of concealed items in current line when changing 'modifiable' option

Dominique Pellé
Hi

Concealed items in current line are displayed unconcealed
in the current line (to be able to edit the current line) except
when 'modifiable' is off, in which case, the current line is displayed
concealed like any other line.

When changing the 'modifiable' option (with :set modifiable!),
vim-7.3a (2255:0e27866cea99) does not redraw the current line
concealed or unconcealed (user needs to press CTRL-L to redraw
it correctly).

Attached patch fixes it.  I also added a note in the help file
to document the effect of the 'modifiable' option regarding
concealed items (I could not see anything about it in the doc)

Cheers
-- Dominique

--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

fixed-conceal-modifiable-7.3a.patch (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: [patch] update display of concealed items in current line when changing 'modifiable' option

Vince Negri-4
From: Dominique Pellé [mailto:[hidden email]]

> When changing the 'modifiable' option (with :set modifiable!),
> vim-7.3a (2255:0e27866cea99) does not redraw the current line
> concealed or unconcealed (user needs to press CTRL-L to redraw
> it correctly).

> Attached patch fixes it.  I also added a note in the help file
> to document the effect of the 'modifiable' option regarding
> concealed items (I could not see anything about it in the doc)

Thanks for finding this. The patch looks sensible to me, although it also
contains an unrelated typo fix which probably shouldn't be committed as part
of the same changeset.

Vince




--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php