Files
neovim/test
Matthew Malcomson 6fe677c108 api: nvim_buf_set_lines(): Avoid invalid ml_get. #6019
When the buffer that nvim_buf_set_lines() is changing is not in any vim
window, fix_cursor() leads to calling ml_get_buf() with an invalid line
number. The condition that fix_cursor() was called on was (buf ==
curbuf), but this is always true because of the call to
switch_to_win_for_buf() earlier in the function.

Instead this should be predicated on (save_curbuf.br_buf == NULL)
2017-03-07 01:29:08 +01:00
..
2016-11-17 00:55:39 +01:00
2016-01-14 23:36:58 -05:00
2017-03-01 14:47:49 +01:00
2017-03-01 14:47:49 +01:00