Mercurial > vim
comparison src/change.c @ 16714:ba592f30c082 v8.1.1359
patch 8.1.1359: text property wrong after :substitute with backslash
commit https://github.com/vim/vim/commit/f3333b02f34526da46cdae608f7e2d869bb8c654
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun May 19 22:53:40 2019 +0200
patch 8.1.1359: text property wrong after :substitute with backslash
Problem: Text property wrong after :substitute with backslash.
Solution: Adjust text property columns when removing backslashes.
(closes #4397)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 19 May 2019 23:00:05 +0200 |
parents | 23af483c4ceb |
children | ef00b6bc186b |
comparison
equal
deleted
inserted
replaced
16713:ba3f15a7e5c9 | 16714:ba592f30c082 |
---|---|
682 void | 682 void |
683 inserted_bytes(linenr_T lnum, colnr_T col, int added UNUSED) | 683 inserted_bytes(linenr_T lnum, colnr_T col, int added UNUSED) |
684 { | 684 { |
685 #ifdef FEAT_TEXT_PROP | 685 #ifdef FEAT_TEXT_PROP |
686 if (curbuf->b_has_textprop && added != 0) | 686 if (curbuf->b_has_textprop && added != 0) |
687 adjust_prop_columns(lnum, col, added, FALSE); | 687 adjust_prop_columns(lnum, col, added, 0); |
688 #endif | 688 #endif |
689 | 689 |
690 changed_bytes(lnum, col); | 690 changed_bytes(lnum, col); |
691 } | 691 } |
692 | 692 |