Mercurial > vim
comparison src/edit.c @ 16698:23af483c4ceb v8.1.1351
patch 8.1.1351: text property wrong after :substitute
commit https://github.com/vim/vim/commit/338dfdad3844ebb1ce1d56c421d1f698c086eb0c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun May 19 15:19:57 2019 +0200
patch 8.1.1351: text property wrong after :substitute
Problem: Text property wrong after :substitute.
Solution: Save for undo before changing any text properties.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 19 May 2019 15:30:07 +0200 |
parents | 3d6b282e2d6e |
children | ba592f30c082 |
comparison
equal
deleted
inserted
replaced
16697:8356f693c812 | 16698:23af483c4ceb |
---|---|
4102 { | 4102 { |
4103 size_t len_now = STRLEN(ml_get_curline()); | 4103 size_t len_now = STRLEN(ml_get_curline()); |
4104 | 4104 |
4105 --text_prop_frozen; | 4105 --text_prop_frozen; |
4106 adjust_prop_columns(curwin->w_cursor.lnum, curwin->w_cursor.col, | 4106 adjust_prop_columns(curwin->w_cursor.lnum, curwin->w_cursor.col, |
4107 (int)(len_now - len_before)); | 4107 (int)(len_now - len_before), FALSE); |
4108 } | 4108 } |
4109 #endif | 4109 #endif |
4110 } | 4110 } |
4111 else if (cc == 0) | 4111 else if (cc == 0) |
4112 (void)del_char_after_col(limit_col); | 4112 (void)del_char_after_col(limit_col); |