diff options
author | dundargoc <gocdundar@gmail.com> | 2024-06-29 11:46:20 +0200 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2024-06-29 17:57:56 +0200 |
commit | 435d0182d293e70b14a5655c976c3c6daa6ea765 (patch) | |
tree | 291fe766b0bec5b7d65192cf2b965dc37aa6ae0f /src/nvim/ops.c | |
parent | ace0d5306b343a4b3e96175b25ab421dba336344 (diff) | |
download | rneovim-435d0182d293e70b14a5655c976c3c6daa6ea765.tar.gz rneovim-435d0182d293e70b14a5655c976c3c6daa6ea765.tar.bz2 rneovim-435d0182d293e70b14a5655c976c3c6daa6ea765.zip |
refactor: remove special handling for lowercase German sharp s
utf8proc already defines LATIN CAPITAL LETTER SHARP S (ẞ) to be the
uppercase variant of LATIN SMALL LETTER SHARP S (ß), so this special
workaround when using `gU` is no longer needed on the neovim side.
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r-- | src/nvim/ops.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index 8f8baaf619..7bffb12412 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -2148,18 +2148,6 @@ bool swapchar(int op_type, pos_T *pos) return false; } - // ~ is OP_NOP, g~ is OP_TILDE, gU is OP_UPPER - if ((op_type == OP_UPPER || op_type == OP_NOP || op_type == OP_TILDE) && c == 0xdf) { - pos_T sp = curwin->w_cursor; - - // Special handling for lowercase German sharp s (ß): convert to uppercase (ẞ). - curwin->w_cursor = *pos; - del_char(false); - ins_char(0x1E9E); - curwin->w_cursor = sp; - return true; - } - int nc = c; if (mb_islower(c)) { if (op_type == OP_ROT13) { |