diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-11-22 19:42:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-22 19:42:28 -0500 |
commit | 093c44d69700577702989c9a4e5e4c1876b08fab (patch) | |
tree | f20301a7adb70b089cb66e3022951f133ca06686 /src/nvim/option.c | |
parent | 6068b907cbc863b7206f4a17a1223b0ffe3b5224 (diff) | |
parent | 15e5acada97685d11cf93af705df0f093abd271a (diff) | |
download | rneovim-093c44d69700577702989c9a4e5e4c1876b08fab.tar.gz rneovim-093c44d69700577702989c9a4e5e4c1876b08fab.tar.bz2 rneovim-093c44d69700577702989c9a4e5e4c1876b08fab.zip |
Merge pull request #13351 from janlazo/vim-8.1.1598
vim-patch:8.1.{1598,1601,2332},8.2.2032
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 0a91687352..146bce8cc0 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -7173,46 +7173,6 @@ int get_sts_value(void) return (int)result; } -/// Check matchpairs option for "*initc". -/// If there is a match set "*initc" to the matching character and "*findc" to -/// the opposite character. Set "*backwards" to the direction. -/// When "switchit" is true swap the direction. -void find_mps_values(int *initc, int *findc, int *backwards, int switchit) -{ - char_u *ptr = curbuf->b_p_mps; - - while (*ptr != NUL) { - if (utf_ptr2char(ptr) == *initc) { - if (switchit) { - *findc = *initc; - *initc = utf_ptr2char(ptr + utfc_ptr2len(ptr) + 1); - *backwards = true; - } else { - *findc = utf_ptr2char(ptr + utfc_ptr2len(ptr) + 1); - *backwards = false; - } - return; - } - char_u *prev = ptr; - ptr += utfc_ptr2len(ptr) + 1; - if (utf_ptr2char(ptr) == *initc) { - if (switchit) { - *findc = *initc; - *initc = utf_ptr2char(prev); - *backwards = false; - } else { - *findc = utf_ptr2char(prev); - *backwards = true; - } - return; - } - ptr += utfc_ptr2len(ptr); - if (*ptr == ',') { - ptr++; - } - } -} - /// This is called when 'breakindentopt' is changed and when a window is /// initialized static bool briopt_check(win_T *wp) |