Ingo Karkat wrote:
> 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.
Well, patch 7.3.1253 made CTRL-= start a new insert. Mainly to break
undo, since evaluationg the expression can make unexpected changes.
I suppose we can drop the part of the change that resets the start of
the insert.
--
CRONE: Who sent you?
ARTHUR: The Knights Who Say Ni!
CRONE: Aaaagh! (she looks around in rear) No! We have no shrubberies here.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [email protected] -- 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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.