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

Thanks

-- 
-- 
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/CACoUkn4RV_s7LGXTG_0KpvT4-pSB1boa3-Ee9i0huCUoYAvinw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui