aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/marktree.c
Commit message (Collapse)AuthorAge
* unused macros: Remove a five unused macros. (#13517)Edwin Pujols2020-12-11
| | | | | | | | | | Removes: - GET_CHARTAB - PRT_PS_DEFAULT_BUFFER_SIZE - key_t - PROP_MASK - SCTX_INIT Referring #13505.
* pvs/v547: comment out code for 'adjustment == 1'Jan Edmund Lazo2020-11-08
| | | | | | | That code never runs. Comment it out in case that it is required for debugging marktree.c. Use 'const' to mark constant variables.
* 'clang/Logic error': zero-init MarkTreeIter varsJan Edmund Lazo2020-03-01
|
* clang/scan-build: restore required codeHirokazu Hata2020-02-23
| | | | ref: https://github.com/neovim/neovim/pull/11900#discussion_r381860165
* clang/scan-build: fix dead stores #11900Hirokazu Hata2020-02-18
|
* extmarks/bufhl: reimplement using new marktree data structureBjörn Linse2020-01-16
| | | | | | | | | | | | | | | | | | | | Add new "splice" interface for tracking buffer changes at the byte level. This will later be reused for byte-resolution buffer updates. (Implementation has been started, but using undocumented "_on_bytes" option now as interface hasn't been finalized). Use this interface to improve many edge cases of extmark adjustment. Changed tests indicate previously incorrect behavior. Adding tests for more edge cases will be follow-up work (overlaps on_bytes tests) Don't consider creation/deletion of marks an undoable event by itself. This behavior was never documented, and imposes complexity for little gain. Add nvim__buf_add_decoration temporary API for direct access to the new implementation. This should be refactored into a proper API for decorations, probably involving a huge dict. fixes #11598
* Add new marktree data structure for storing marksBjörn Linse2020-01-14
This is inspired by Atom's "marker index" data structure to efficiently adjust marks to text insertions deletions, but uses a wide B-tree (derived from kbtree) to keep the nesting level down.