summaryrefslogtreecommitdiffstatshomepage
path: root/test/functional/lua/buffer_updates_spec.lua
AgeCommit message (Collapse)AuthorFiles
2021-10-06fix(extmarks): splice extmarks on nv_Undo #15920Tony Chen1
2021-08-25fix(bufupdates): send correct updates for visual pasteThomas Vigouroux1
One step further towards stable tree-sitter. Co-authored-by: Björn Linse <bjorn.linse@gmail.com>
2021-06-29Manually zero out deleted_bytes2 when substituting and joining lineschentau1
2021-06-09add tests in buffer_updatesjbyuki1
2021-05-18fix(bufupdate): send events when inserting with virtualeditThomas Vigouroux1
Problem first raised https://github.com/nvim-treesitter/nvim-treesitter/issues/1304
2021-05-09make get_region_bytecount end-exclusivechentau1
2021-05-09refactor nvim_buf_set_lines to use extmark_splicechentau1
2021-05-06splice extmarks on every line for block visual pastechentau1
2021-04-17Merge pull request #14385 from chentau/extmark_deleteBjörn Linse1
Extmarks: remove `curbuf->deleted_bytes2` from `op_delete`
2021-04-16extmarks: remove curbuf->deleted_bytes2 from op_deletechentau1
2021-04-14flush curbuf->deleted_bytes2 after calling do_movechentau1
2021-04-13Merge pull request #14318 from chentau/extmark_luadoBjörn Linse1
extmark: splice extmarks on :luado
2021-04-12extmark: splice extmarks on :luadochentau1
2021-04-10Merge pull request #14317 from chentau/extmark_subBjörn Linse1
extmark: correct extmark_splice call with substitute and inccommand when replacing with escaped backslashes
2021-04-09extmark: correct extmark_splice call with inccommandchentau1
2021-04-02extmark: fixes for noexpandtab and retabchentau1
2021-03-24Merge pull request #14191 from chentau/extmark_blockpasteBjörn Linse1
Extmarks: send correct buffer events on blockwise paste for nonuniform lines
2021-03-23Extmarks: correct buffer events on blockwise pastechentau1
2021-03-22Correctly splice extmarks on tab with noexpandtab setchentau1
2021-03-03Merge pull request #13973 from chentau/on_bytes_undofileBjörn Linse1
New versions of neovim will not read undofiles written by nvim before this merge (there will be an error message about incopmatible version). Nvim 0.4 (or an master up to bda12927be84f0e0e05e885f9acb40a7ac2c5524 ) can be used to recover older undofiles, so if you worried about unsaved changes lurking around in undofiles it would make sense to keep such version around somewhere to recover them. This is a necessary change to keep tree-sitter and plugins dependent on byte-level buffer change events fully working with undo states from a undofile. If there is a clear demand we might implement reading of the old format. Such recovered buffers will not be be fully functional with plugins relying on buffer updates or tree-sitter, however.
2021-03-02Extmarks: Save extmark undo information to undofile.chentau1
2021-02-16Merge pull request #13692 from mjlbach/fix_cursor_respect_current_lineBjörn Linse1
fix_cursor: do not change line number when edit will not impact cursor row
2021-02-14buffer_updates: autoload episode III: revenge of the treesBjörn Linse1
2021-02-10buffer updates: add on_reload callback and handle it in treesitter parserBjörn Linse1
2021-02-08fix(buf_updates): send updates when putting past last lineThomas Vigouroux1
Fixes #13710
2021-02-04tests: clean up lua/buffer_updates_spec.luaBjörn Linse1
2021-02-04inccommand: preserve extmarks when undoing preview substitutionBjörn Linse1
2021-01-31tests: add test for cursor postion when deleting buffer linesMichael Lingelbach1
2021-01-01api: set_text: fix some byte count issuesBjörn Linse1
add byte count tests update documentation
2020-12-15feat(buffer_updates): allow ignoring when previewingThomas Vigouroux1
Also adds a test that we actually subscribe to buffer events when in CMDPREVIEW.
2020-10-10api: multiple decoration providers at onceBjörn Linse1
2020-09-30Fix byte updates for blockwise paste at buffer endKillTheMule1
2020-09-30bytetrack: add blockwise paste testThomas Vigouroux1
2020-09-30Fix buffer_updates on blockwise pasteKillTheMule1
Fixes #12718.
2020-09-19test: buffer updates: add visual charwise paste testBjörn Linse1
2020-09-19buffer updates: fix issues with "change" operatorBjörn Linse1
2020-09-19tests: lua buffer updates: reorg check_events()Björn Linse1
2020-09-18buf_updates: fix wrong updates on linewise changeThomas Vigouroux1
2020-09-17buf_updates: fix updates for empty buffers (#12926)Thomas Vigouroux1
On empty buffers, when editing the first line, the line is buffered, causing offset to be < 0. While the buffer is not actually empty, the buffered line has not been flushed (and should not be) yet, so the call is valid but an edge case.
2020-09-16treesitter: filter updates on <CR>Thomas Vigouroux1
This fixes an error when fo=ro, when hitting <CR> to insert a new comment line.
2020-09-16buf_attach: fix buffer updates with setline()Björn Linse1
2020-09-11fix(bufupdates): avoid sending empty updatesThomas Vigouroux1
2020-09-11fix(bytetrack): send correct events when opening linesThomas Vigouroux1
a bit of test cleanup ärrår feeel SPLIT fix: sned correct updates on <CR>
2020-09-09fix lintsThomas Vigouroux1
2020-09-09api/buffer: add "on_bytes" callback to nvim_buf_attachBjörn Linse1
This implements byte-resolution updates of buffer changes. Note: there is no promise that the buffer state is valid inside the callback!
2020-08-31fix(win): ignore closing wins in win_findbuf #12798Thomas Vigouroux1
This caused segfaults when calling win_findbuf in an `on_detach` callback, when the callback was triggered when closing the last window containing the buffer.
2020-01-30doc: fix typos [ci skip] #11787Hye Sung Jung1
2020-01-30Fix shift change callbacks reading bad cursor (#11782)Axel Forsman1
Sloppy code inherited from Vim caused user scripts to be able to observe the cursor line in an invalid intermediary state, due to Neovim change callbacks being unbuffered unlike Vim listeners. Manifested in Vimscript executed from the callback possibly erroring when `:call`:ing any function, due to the implicit range `curwin->w_cursor.lnum,curwin->w_cursor.lnum` failing validation. Fixed by deferring the call to `changed_lines()` until after `curwin->w_cursor.lnum` gets its correct value.
2019-08-06lua: support getting UTF-32 and UTF-16 sizes of replaced textBjörn Linse1
2019-08-06lua: add {old_byte_size} to on_lines buffer change eventBjörn Linse1