summaryrefslogtreecommitdiffstats
path: root/zellij-client
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2021-08-20 16:54:18 +0200
committerGitHub <noreply@github.com>2021-08-20 16:54:18 +0200
commit643b7df35ccee9d274dcf5d555746dff7d9056d7 (patch)
tree30ca32c436f80c73171d1832f0b357e2250f4f0d /zellij-client
parenta4e6e89a76221fff1590c4ed46b5a18f9daac1f2 (diff)
fix(compatibility): properly paste multilines (#653)
* fix(compatibility): properly paste multilines * test(input): fix bracketed paste assertion
Diffstat (limited to 'zellij-client')
-rw-r--r--zellij-client/src/input_handler.rs2
-rw-r--r--zellij-client/src/unit/input_handler_tests.rs2
2 files changed, 4 insertions, 0 deletions
diff --git a/zellij-client/src/input_handler.rs b/zellij-client/src/input_handler.rs
index f02b5ad81..8e65df49c 100644
--- a/zellij-client/src/input_handler.rs
+++ b/zellij-client/src/input_handler.rs
@@ -91,8 +91,10 @@ impl InputHandler {
self.handle_key(&key, raw_bytes);
} else if unsupported_key == bracketed_paste_start {
self.pasting = true;
+ self.handle_unknown_key(raw_bytes);
} else if unsupported_key == bracketed_paste_end {
self.pasting = false;
+ self.handle_unknown_key(raw_bytes);
} else {
// this is a hack because termion doesn't recognize certain keys
// in this case we just forward it to the terminal
diff --git a/zellij-client/src/unit/input_handler_tests.rs b/zellij-client/src/unit/input_handler_tests.rs
index f40344fe4..9b0bc71c1 100644
--- a/zellij-client/src/unit/input_handler_tests.rs
+++ b/zellij-client/src/unit/input_handler_tests.rs
@@ -259,7 +259,9 @@ pub fn bracketed_paste() {
default_mode,
));
let expected_actions_sent_to_server = vec![
+ Action::Write(commands::BRACKETED_PASTE_START.to_vec()),
Action::Write(commands::MOVE_FOCUS_LEFT_IN_NORMAL_MODE.to_vec()), // keys were directly written to server and not interpreted
+ Action::Write(commands::BRACKETED_PASTE_END.to_vec()),
Action::Quit,
];
let received_actions = extract_actions_sent_to_server(events_sent_to_server);