mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 10:56:31 +00:00
vim-patch:8.1.1342: using freed memory when joining line with text property
Problem: Using freed memory when joining line with text property.
Solution: Use already computed length.
787880a86d
This commit is contained in:
@@ -3749,7 +3749,7 @@ int do_join(size_t count,
|
|||||||
if (setmark) {
|
if (setmark) {
|
||||||
// Set the '] mark.
|
// Set the '] mark.
|
||||||
curwin->w_buffer->b_op_end.lnum = curwin->w_cursor.lnum;
|
curwin->w_buffer->b_op_end.lnum = curwin->w_cursor.lnum;
|
||||||
curwin->w_buffer->b_op_end.col = (colnr_T)STRLEN(newp);
|
curwin->w_buffer->b_op_end.col = sumsize;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Only report the change in the first line here, del_lines() will report
|
/* Only report the change in the first line here, del_lines() will report
|
||||||
|
Reference in New Issue
Block a user