Paul Jolly wrote:
> > I'll make a patch that does this, please check it out. > > Hi Bram - I've only spotted one potential issue working with v8.1.1333. > > Using the following vimrc > > function EchoChanges(bufnr, start, end, added, changes) > redir >> /tmp/listener.log | echom a:changes | redir END > endfunction > call listener_add("EchoChanges") > > via -u and then issuing the following keys: > > iasdf<Esc>yyp > > gives the following log sequence: > > [{'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': 2, 'col': 1, 'added': 1, 'end': 2}] > > It's the last line that I think is wrong; it's an add and according to the > docs: > > When lines are inserted the values are: > lnum line below which the new line is added > end equal to "lnum" > added number of lines inserted > col 1 > > I think lnum should be 1, no? > > Apologies if I'm missing something obvious here. The help is wrong, it should say "line above which". Of course we could change the implementation, but it would be an exception. -- Mrs Abbott: I'm a paediatrician. Basil: Feet? Mrs Abbott: Children. Sybil: Oh, Basil! Basil: Well, children have feet, don't they? That's how they move around, my dear. You must take a look next time, it's most interesting. (Fawlty Towers) /// 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. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/201905161501.x4GF17Rh029036%40masaka.moolenaar.net. For more options, visit https://groups.google.com/d/optout.