mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 09:26:30 +00:00
buffer_updates: emit valid old_byte_size
Test this using treesitter highlighting, which is based on this old_byte_size.
This commit is contained in:
@@ -1876,8 +1876,10 @@ errorret:
|
||||
buf->b_ml.ml_line_lnum = lnum;
|
||||
buf->b_ml.ml_flags &= ~ML_LINE_DIRTY;
|
||||
}
|
||||
if (will_change)
|
||||
if (will_change) {
|
||||
buf->b_ml.ml_flags |= (ML_LOCKED_DIRTY | ML_LOCKED_POS);
|
||||
ml_add_deleted_len_buf(buf, buf->b_ml.ml_line_ptr, -1);
|
||||
}
|
||||
|
||||
return buf->b_ml.ml_line_ptr;
|
||||
}
|
||||
|
Reference in New Issue
Block a user