Mercurial > vim
comparison src/misc1.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 | b52ea9c5f1db |
comparison
equal
deleted
inserted
replaced
16713:ba3f15a7e5c9 | 16714:ba592f30c082 |
---|---|
439 | 439 |
440 // When increasing indent this behaves like spaces were inserted at | 440 // When increasing indent this behaves like spaces were inserted at |
441 // the old indent, when decreasing indent it behaves like spaces | 441 // the old indent, when decreasing indent it behaves like spaces |
442 // were deleted at the new indent. | 442 // were deleted at the new indent. |
443 adjust_prop_columns(curwin->w_cursor.lnum, | 443 adjust_prop_columns(curwin->w_cursor.lnum, |
444 (colnr_T)(added > 0 ? (p - oldline) : ind_len), added, FALSE); | 444 (colnr_T)(added > 0 ? (p - oldline) : ind_len), added, 0); |
445 } | 445 } |
446 #endif | 446 #endif |
447 retval = TRUE; | 447 retval = TRUE; |
448 } | 448 } |
449 else | 449 else |