RE: Patch 5.6.075
This patch makes the inserted text appear as one would expect it to
appear, but the indentation is not done as I would expect. The original
test case was something like this:
gvim -u NONE -U NONE
Insert the following three lines:
(four spaces at the start of each line).
Then with the cursor on the first 'a', do ^Vjj to select the first letter in
each row. Then hit
The text appears as
which looks correct. Then :set list, and you see
Shouldn't the second and third lines be identical to the first line? That
is, shouldn't they contain a tab and no spaces?
This is a minor thing, but if it is just as easy to do it this way, I would
like to see it changed.
> From: Bram Moolenaar [mailto:Bram@...]may
> Sent: Friday, June 02, 2000 12:14 PM
> To: vim-dev@...
> Subject: Patch 5.6.075
> Patch 5.6.075
> Problem: When using "I" or "A" in Visual block mode while 'sts' is set
> change spaces to a Tab the inserted text is not correct. (Mikethe
> Steed) And some other problems when using "A" to append after
> end of the line.Append
> Solution: Check for change in spaces/tabs after inserting the text.
> spaces to fill the gap between the end-of-line and the rightedge
> of the block.[patch snipped]
> /-/-- Bram Moolenaar --- Bram@... ---http://www.moolenaar.net --\-\
\-\-- Vim: http://www.vim.org ---- ICCF Holland: http://www.vim.org/iccf
- Mike Steed wrote:
> which looks correct. Then :set list, and you seeYes, the spaces in the second and third lines should have been removed.
> Shouldn't the second and third lines be identical to the first line? That
> is, shouldn't they contain a tab and no spaces?
Unfortunately, this is a bit difficult to add to the existing code. I might
want to completely change the way it works. Currently it remembers some
positions, gives the user control to enter the text, then grabs the entered
text and repeats it in the other lines. Thus the text is not entered "as
typed" in the other lines, but copied from the first line. It would be better
if the typed characters are repeated in each line. But that may cause other
problems, this requires investigation. I don't plan to do that soon though...
This message contains 78% recycled characters.
/-/-- Bram Moolenaar --- Bram@... --- http://www.moolenaar.net --\-\
\-\-- Vim: http://www.vim.org ---- ICCF Holland: http://www.vim.org/iccf --/-/