mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
fix(termkey): accept BEL (0x07) as OSC terminator
This commit is contained in:
@@ -653,6 +653,8 @@ static TermKeyResult peekkey_ctrlstring(TermKey *tk, TermKeyCsi *csi, size_t int
|
|||||||
size_t str_end = introlen;
|
size_t str_end = introlen;
|
||||||
|
|
||||||
while(str_end < tk->buffcount) {
|
while(str_end < tk->buffcount) {
|
||||||
|
if(CHARAT(str_end) == 0x07) // BEL
|
||||||
|
break;
|
||||||
if(CHARAT(str_end) == 0x9c) // ST
|
if(CHARAT(str_end) == 0x9c) // ST
|
||||||
break;
|
break;
|
||||||
if(CHARAT(str_end) == 0x1b &&
|
if(CHARAT(str_end) == 0x1b &&
|
||||||
|
Reference in New Issue
Block a user