Paul Jolly wrote:
> > The help is wrong, it should say "line above which".
> > Of course we could change the implementation, but it would be an exception.
>
> Ah, if it's "line above which" then I think there is a problem with
> the following sequence:
>
> iasdf<CR>
>
> which gives:
>
> [{'lnum': 1, 'col': 1, 'added': 0, 'end': 2}]
> [{'lnum': 1, 'col': 2, 'added': 0, 'end': 2}]
> [{'lnum': 1, 'col': 3, 'added': 0, 'end': 2}]
> [{'lnum': 1, 'col': 4, 'added': 0, 'end': 2}]
> [{'lnum': 1, 'col': 5, 'added': 1, 'end': 2}]
>
> Again, apologies if I'm missing something obvious here.
This is not inserting a line but splitting a line. There could be text
after the insertion point, which moves to the next line when pressing
Enter. In your case there might be nothing, but that doesn't cause a
different change item. You can see "lnum" and "end" are not the same
here, meaning that this line might be changed.
--
Any resemblance between the above views and those of my employer, my terminal,
or the view out my window are purely coincidental. Any resemblance between
the above and my own views is non-deterministic. The question of the
existence of views in the absence of anyone to hold them is left as an
exercise for the reader. The question of the existence of the reader is left
as an exercise for the second god coefficient. (A discussion of
non-orthogonal, non-integral polytheism is beyond the scope of this article.)
(Ralph Jennings)
/// 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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/201905161607.x4GG7nFg007387%40masaka.moolenaar.net.
For more options, visit https://groups.google.com/d/optout.