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