termwiz: fix partial bracketed paste panic

This commit is contained in:
Thomas Linford authored and Wez Furlong committed 2022-04-07 07:16:13 -07:00
1 parent 28baf56a6e
commit 59425237bc
1 file changed
+1 -1
+1 -1
View File
@@ -1276,7 +1276,7 @@ impl InputParser {
callback(InputEvent::Paste(pasted));
self.state = InputState::Normal;
} else {
self.state = InputState::Pasting(self.buf.len() - end_paste.len());
self.state = InputState::Pasting(0);
return;
}
}