Skip to content

Commit b037208

Browse files
radaretrufae
authored andcommitted
Handle the "paste" fixterm ##cons
1 parent 6b3d53c commit b037208

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libr/cons/dietline.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2305,7 +2305,8 @@ R_API const char *r_line_readline_cb(RLineReadCallback cb, void *user) {
23052305
// ignore most CSI fixterms - https://www.leonerd.org.uk/hacks/fixterms/
23062306
while (true) {
23072307
ch = r_cons_readchar ();
2308-
if (ch == 126) {
2308+
// 'i' is the CSI fixterm for insert
2309+
if (ch == 126 || ch == 'i' || ch < 15) {
23092310
// consider shift+return is the same as the return key
23102311
ch = '\n';
23112312
break;

0 commit comments

Comments
 (0)