Mercurial > vim
comparison src/indent.c @ 18763:49b78d6465e5 v8.1.2371
patch 8.1.2371: FEAT_TEXT_PROP is a confusing name
Commit: https://github.com/vim/vim/commit/05ad5ff0ab34ed9a5296dedd420ca81698b8ce22
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Nov 30 22:48:27 2019 +0100
patch 8.1.2371: FEAT_TEXT_PROP is a confusing name
Problem: FEAT_TEXT_PROP is a confusing name.
Solution: Use FEAT_PROP_POPUP. (Naruhiko Nishino, closes https://github.com/vim/vim/issues/5291)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 30 Nov 2019 23:00:05 +0100 |
parents | fd95d4dbeb37 |
children | 82c732e8d23d |
comparison
equal
deleted
inserted
replaced
18762:19582783e5ad | 18763:49b78d6465e5 |
---|---|
771 else if (saved_cursor.col >= (colnr_T)(s - newline)) | 771 else if (saved_cursor.col >= (colnr_T)(s - newline)) |
772 // cursor was in the indent, and is now after it, put it back | 772 // cursor was in the indent, and is now after it, put it back |
773 // at the start of the indent (replacing spaces with TAB) | 773 // at the start of the indent (replacing spaces with TAB) |
774 saved_cursor.col = (colnr_T)(s - newline); | 774 saved_cursor.col = (colnr_T)(s - newline); |
775 } | 775 } |
776 #ifdef FEAT_TEXT_PROP | 776 #ifdef FEAT_PROP_POPUP |
777 { | 777 { |
778 int added = ind_len - (colnr_T)(p - oldline); | 778 int added = ind_len - (colnr_T)(p - oldline); |
779 | 779 |
780 // When increasing indent this behaves like spaces were inserted at | 780 // When increasing indent this behaves like spaces were inserted at |
781 // the old indent, when decreasing indent it behaves like spaces | 781 // the old indent, when decreasing indent it behaves like spaces |