comparison src/change.c @ 19534:36ec10251b2b v8.2.0324

patch 8.2.0324: text property not updated correctly when inserting/deleting Commit: https://github.com/vim/vim/commit/12f20038714928bfecdeee31ed1f927324542034 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Feb 26 22:06:00 2020 +0100 patch 8.2.0324: text property not updated correctly when inserting/deleting Problem: Text property not updated correctly when inserting/deleting. Solution: Use the right column when deleting. Make zero-width text properties respect start_incl and end_incl. (Axel Forsman, closes #5696, closes #5679)
author Bram Moolenaar <Bram@vim.org>
date Wed, 26 Feb 2020 22:15:04 +0100
parents d72b30bf3a80
children 435726a03481
comparison
equal deleted inserted replaced
19533:ffe25b424609 19534:36ec10251b2b
1299 curbuf->b_ml.ml_line_len -= count; 1299 curbuf->b_ml.ml_line_len -= count;
1300 } 1300 }
1301 #endif 1301 #endif
1302 1302
1303 // mark the buffer as changed and prepare for displaying 1303 // mark the buffer as changed and prepare for displaying
1304 inserted_bytes(lnum, curwin->w_cursor.col, -count); 1304 inserted_bytes(lnum, col, -count);
1305 1305
1306 return OK; 1306 return OK;
1307 } 1307 }
1308 1308
1309 /* 1309 /*