From f3333b02f34526da46cdae608f7e2d869bb8c654 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 19 May 2019 22:53:40 +0200 Subject: 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) --- src/misc1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/misc1.c') diff --git a/src/misc1.c b/src/misc1.c index 1eac5189ae..e76e4a4a37 100644 --- a/src/misc1.c +++ b/src/misc1.c @@ -441,7 +441,7 @@ set_indent( // the old indent, when decreasing indent it behaves like spaces // were deleted at the new indent. adjust_prop_columns(curwin->w_cursor.lnum, - (colnr_T)(added > 0 ? (p - oldline) : ind_len), added, FALSE); + (colnr_T)(added > 0 ? (p - oldline) : ind_len), added, 0); } #endif retval = TRUE; -- cgit v1.2.3