diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-11-22 14:52:16 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-11-22 15:07:06 -0500 |
commit | 15e5acada97685d11cf93af705df0f093abd271a (patch) | |
tree | d5e288bca4c516618a4a721e5c807a4593bdd604 /src/nvim/option.c | |
parent | e2a2efc4325219d889c59c91329695717ed970bc (diff) | |
download | rneovim-15e5acada97685d11cf93af705df0f093abd271a.tar.gz rneovim-15e5acada97685d11cf93af705df0f093abd271a.tar.bz2 rneovim-15e5acada97685d11cf93af705df0f093abd271a.zip |
vim-patch:8.1.2332: missing file in refactoring
Problem: Missing file in refactoring.
Solution: Update missing file.
https://github.com/vim/vim/commit/556ae8ea28b4e3e9fc47ad130795009a3080146e
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) |