Improve incremental feature

This commit is contained in:
Jacob 2023-07-09 15:26:52 +02:00
parent 5d399c96e3
commit 5609c4d006
2 changed files with 5 additions and 5 deletions

View file

@ -27,11 +27,6 @@ void eventloop_x11(void) {
grabfocus();
break;
case KeyPress: // read key array and call functions
if (incremental) {
puts(tx.text);
fflush(stdout);
}
keypress_x11(&ev);
break;
case SelectionNotify: // paste selection

View file

@ -458,6 +458,11 @@ void insert(const char *str, ssize_t n) {
sp.cursor -= n;
match();
}
if (incremental) {
puts(tx.text);
fflush(stdout);
}
}
size_t nextrune(int inc) {