Mercurial > vim
comparison src/ops.c @ 28869:6a4edacbd178 v8.2.4957
patch 8.2.4957: text properties in a wrong position after a block change
Commit: https://github.com/vim/vim/commit/b559b302e0ecc6fced03d5201dc30f10cff7af0a
Author: LemonBoy <thatlemon@gmail.com>
Date: Sun May 15 13:08:02 2022 +0100
patch 8.2.4957: text properties in a wrong position after a block change
Problem: Text properties in a wrong position after a block change.
Solution: Adjust the properties columns. (closes https://github.com/vim/vim/issues/10427)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 15 May 2022 14:15:04 +0200 |
parents | 948877671c54 |
children | 6cdf55afaae9 |
comparison
equal
deleted
inserted
replaced
28868:e2fd5533b8e9 | 28869:6a4edacbd178 |
---|---|
1812 mch_memmove(newp + offset, ins_text, (size_t)ins_len); | 1812 mch_memmove(newp + offset, ins_text, (size_t)ins_len); |
1813 offset += ins_len; | 1813 offset += ins_len; |
1814 oldp += bd.textcol; | 1814 oldp += bd.textcol; |
1815 STRMOVE(newp + offset, oldp); | 1815 STRMOVE(newp + offset, oldp); |
1816 ml_replace(linenr, newp, FALSE); | 1816 ml_replace(linenr, newp, FALSE); |
1817 #ifdef FEAT_PROP_POPUP | |
1818 // Shift the properties for linenr as edit() would do. | |
1819 if (curbuf->b_has_textprop) | |
1820 adjust_prop_columns(linenr, bd.textcol, | |
1821 vpos.coladd + ins_len, 0); | |
1822 #endif | |
1817 } | 1823 } |
1818 } | 1824 } |
1819 check_cursor(); | 1825 check_cursor(); |
1820 | 1826 |
1821 changed_lines(oap->start.lnum + 1, 0, oap->end.lnum + 1, 0L); | 1827 changed_lines(oap->start.lnum + 1, 0, oap->end.lnum + 1, 0L); |