1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-22 22:42:48 +03:00

termwiz: fix partial bracketed paste panic

This commit is contained in:
Thomas Linford 2022-04-07 10:09:29 +02:00 committed by Wez Furlong
parent 28baf56a6e
commit 59425237bc

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;
}
}