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.
This commit is contained in:
dundargoc
2024-06-29 11:46:20 +02:00
committed by dundargoc
parent ace0d5306b
commit 435d0182d2
2 changed files with 0 additions and 15 deletions

View File

@@ -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) {