Hello Vim developers,
When inserting text in insert mode via <C-R>, if the expression register
"= is used, the start of the last changed text somehow gets reset to the
position where the <C-R>= is triggered; i.e. any previously inserted
text is not considered as belonging to the current insertion.
vim -N -u NONE
:let @@ = 'bar'
:execute "normal! Ofoo\<C-r>\"\<Esc>"
:echo getpos("'[")
[0, 1, 1, 0] " Okay.
:execute "normal! Ofoo\<C-r>=v:version\<CR>\<Esc>"
:echo getpos("'[")
[0, 1, 1, 0] " Okay: Vim 7.3.712 on Ubuntu 13.04/x64
" Okay: Vim 7.3.823 on Windows 7/x64
[0, 1, 4, 0] " BUG: Vim 7.3.1280 on Ubuntu 13.04/x64 (huge build)
This regression is breaking plugins and macros; I found it while running
my plugins' test suites.
-- regards, ingo
--
--
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.