mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
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.
This commit is contained in:
@@ -4635,7 +4635,7 @@ do_join(
|
||||
{
|
||||
/* Set the '] mark. */
|
||||
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 = (colnr_T)sumsize;
|
||||
}
|
||||
|
||||
/* Only report the change in the first line here, del_lines() will report
|
||||
|
Reference in New Issue
Block a user