ref: 1e7a06083b2330a3f271001e55973912c2fa7b45
parent: 7ae78bc3363349f6af9b93e43dec67259467fdc9
author: phil9 <telephil9@gmail.com>
date: Wed Dec 22 06:48:41 EST 2021
properly report <CR> key Report newline as <CR> as it is what VIM expects to work properly with menus (e.g. copen)
--- a/os_plan9.c
+++ b/os_plan9.c
@@ -745,7 +745,11 @@
got_int = TRUE;
return 0;
}
- len = runetochar(utf, &rune);
+ if(rune == '\n'){
+ utf[0] = CAR;
+ len = 1;
+ }else
+ len = runetochar(utf, &rune);
add_to_input_buf_csi((char_u*)utf, len); /* TODO escape K_SPECIAL? */
return len > 0;
} else if(ecanmouse()) {