Björn Linse
6d23a58b7d
refactor(extmark): remove pointer indirection for extmark use of maps
2021-08-22 10:46:01 +02:00
Björn Linse
cd353aa824
fix(decorations): crash when :bdelete (extmark_free_all) after clear_namespace
...
fixes #15212
2021-07-29 12:59:56 +02:00
dundargoc
4547137aaf
chore: use codespell to spell check #15016
2021-07-07 15:28:44 -07:00
chentau
5a36d413fb
flush curbuf->deleted_bytes2 after calling do_move
2021-04-14 21:47:21 -07:00
chentau
231f75e086
change gravity to be a boolean flag, and add corresponding flag for end position of extmark
2021-01-05 00:28:34 -08:00
chentau
10b278bdae
allow for extmark gravity to be set through api
2021-01-03 13:59:24 -08:00
Tony Chen
45b14f88db
api: set_text: rebase, update to new api, and add more tests
2021-01-01 19:51:45 +01:00
Jan Edmund Lazo
4e6f00dd29
gcc/analyzer: fix false positives for NULL ( #13248 )
...
Close https://github.com/neovim/neovim/issues/13158
2020-11-08 22:48:17 -05:00
Björn Linse
8497d4b3ea
decoration: split out "decoration" from "extmark" module
...
Decorations will only grow more complex. move the to a separate
file, so that extmark.c remains about extmarks.
2020-11-07 09:55:17 +01:00
erw7
620c8fdfe9
extmark: fix decoration ploblems with extmark
...
54ce101
changed the way undo entries are created when adding decorations.
This creates all sorts of problems.This change fixes the problem by
reverting to the previous behavior.
2020-10-02 11:41:30 +09:00
Thomas Vigouroux
6dc815530b
buf_updates: fix updates for empty buffers ( #12926 )
...
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-17 23:34:28 +02:00
Björn Linse
2c15f695a8
luahl: temporary workaround for virt_text ownership ambiguity
2020-09-13 07:46:39 +02:00
Björn Linse
4042975df4
luahl: global the luahl
2020-09-13 07:46:39 +02:00
Thomas Vigouroux
82fb6a8818
fix lints
2020-09-09 21:22:21 +02:00
Björn Linse
bc86f76c0a
api/buffer: add "on_bytes" callback to nvim_buf_attach
...
This implements byte-resolution updates of buffer changes.
Note: there is no promise that the buffer state is valid inside
the callback!
2020-09-09 21:22:21 +02:00
Björn Linse
333bfd5a29
extmark: use resonable names in extmark_splice
2020-09-09 21:22:21 +02:00
Björn Linse
f42aa95fbc
extmark: separate extmark_splice_cols for column-only change
...
as the byte logic will be the same for all of these
2020-09-09 21:22:21 +02:00
Björn Linse
49f5b57587
decor: sketch new decorations API
...
return decorations back
lol no nvim_buf_get_virtual_text
share decorations that are hl only to avoid alloc avalanche
2020-09-03 15:40:24 +02:00
Björn Linse
54ce1010e8
extmark: refiy "Decoration" abstraction
...
one very important thought
2020-09-03 10:23:52 +02:00
Matthieu Coudron
7d2879694e
extmark: introduce extmark_splice_cols
...
to ease up notations.
2020-04-24 20:32:20 +02:00
Jan Edmund Lazo
35e798c3a7
pvs/v595: check if extmark not NULL
2020-04-13 12:00:30 -04:00
Jan Edmund Lazo
0eb2f2be60
'clang/Logic error': zero-init MarkTreeIter vars
2020-03-01 03:57:58 -05:00
Björn Linse
7d7adf7acc
treesitter: cleanup some luahl stuff
2020-02-10 13:10:15 +01:00
Björn Linse
95fd28f4a1
treesitter: use internal "decorations" buffer
2020-02-10 13:10:15 +01:00
Björn Linse
459a362cc1
extmarks: fix crash due to invalid column values in inccommand preview
...
This used to use -1 and MAXCOL values. Make sure in range values are
used.
2020-02-02 10:50:48 +01:00
Björn Linse
48a869dc6d
shed biking: it's always extmarks, never marks extended
2020-01-20 19:36:35 +01:00