Skip to content

Commit c808adc

Browse files
committed
fix: close focus on quick jump
1 parent 7f69b1a commit c808adc

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "room"
3-
version = "1.1.0"
3+
version = "1.1.1"
44
edition = "2021"
55
authors = ["Lucas Rosa <[email protected]>"]
66
publish = false

src/main.rs

+1
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ impl ZellijPlugin for State {
245245
should_render = true;
246246
}
247247
Event::Key(Key::Char(c)) if c.is_ascii_digit() && self.quick_jump => {
248+
close_focus();
248249
switch_tab_to(c.to_digit(10).unwrap());
249250
}
250251
Event::Key(Key::Char(c)) if c.is_ascii_alphabetic() || c.is_ascii_digit() => {

0 commit comments

Comments
 (0)