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:
2
tabbed
2
tabbed
@@ -586,7 +586,7 @@ sub tab_key_press {
|
|||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
elsif ($keysym > 0x29 and $keysym < 0x40) {
|
elsif ($keysym > 0x2f and $keysym < 0x40) {
|
||||||
# make ctrl+1...0 switch to proper tab
|
# make ctrl+1...0 switch to proper tab
|
||||||
my $num = $keysym - 0x30;
|
my $num = $keysym - 0x30;
|
||||||
if ($num == 0) {
|
if ($num == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user