Mercurial > vim
comparison src/ops.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 | 77bcb5055fec |
children | ef00b6bc186b |
comparison
equal
deleted
inserted
replaced
16713:ba3f15a7e5c9 | 16714:ba592f30c082 |
---|---|
1935 /* replace the line */ | 1935 /* replace the line */ |
1936 ml_replace(lnum, newp, FALSE); | 1936 ml_replace(lnum, newp, FALSE); |
1937 | 1937 |
1938 #ifdef FEAT_TEXT_PROP | 1938 #ifdef FEAT_TEXT_PROP |
1939 if (curbuf->b_has_textprop && n != 0) | 1939 if (curbuf->b_has_textprop && n != 0) |
1940 adjust_prop_columns(lnum, bd.textcol, -n, FALSE); | 1940 adjust_prop_columns(lnum, bd.textcol, -n, 0); |
1941 #endif | 1941 #endif |
1942 } | 1942 } |
1943 | 1943 |
1944 check_cursor_col(); | 1944 check_cursor_col(); |
1945 changed_lines(curwin->w_cursor.lnum, curwin->w_cursor.col, | 1945 changed_lines(curwin->w_cursor.lnum, curwin->w_cursor.col, |