1
0
mirror of https://github.com/gryf/tabbedalt.git synced 2025-12-17 11:30:31 +01:00

Fix range of detected shortcut for quick switch.

To quickly switch to the desired tab, there is a shortcut ctrl-0 to
ctrl-9, where ctrl-0 will switch to tab 10, ctrl-1 to tab 1 and so on.
There is a range in the code, which detect which tab to pick up to jump.
Range was to wide, this commit is fixing that.
This commit is contained in:
2018-12-12 21:30:03 +01:00
parent 1bf9362a2f
commit 41893fbe71

2
tabbed
View File

@@ -586,7 +586,7 @@ sub tab_key_press {
return 1;
}
elsif ($keysym > 0x29 and $keysym < 0x40) {
elsif ($keysym > 0x2f and $keysym < 0x40) {
# make ctrl+1...0 switch to proper tab
my $num = $keysym - 0x30;
if ($num == 0) {