Christian wrote:

> Bram,
> here is a patch for an obscure bug when block-inserting.
> While I was trying to fix another thing I noticed that Vim wouldn't let 
> me block insert a tab char in front of a block selection.
> 
> The problem is, when there are spaces in front of the visually selected 
> block and you are inserting tabs, the spaces in front of the block might
> be changed to a single tab (according to your sts and ts settings) and 
> therefore the oap->start position will be wrong.
> 
> (It took me a while until I figured out, that the column position 
> actually decreases although I have added a single char. That was really 
> unexpected).
> 
> This will finally lead to the situation that Vim thinks, the length of 
> the inserted text is negative and abort. So here is a patch, that fixes 
> this and also includes a test. 
> 
> (Test suite successful run 
> https://travis-ci.org/chrisbra/vim-ci/builds/48824000)

Thanks!

-- 
hundred-and-one symptoms of being an internet addict:
147. You finally give up smoking...because it made the monitor dirty.

 /// Bram Moolenaar -- b...@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    ///

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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui