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

Remove trailing spaces

This commit is contained in:
2021-04-02 18:20:01 +02:00
parent 6fc444851f
commit 071587d0dc

View File

@@ -60,7 +60,7 @@
# URxvt.tabbedalt.tabcmds.3: M|mc|mc # URxvt.tabbedalt.tabcmds.3: M|mc|mc
# #
# URxvt.tabbedalt.tabcmds.[number] is a ordinal number, started from 1. There # URxvt.tabbedalt.tabcmds.[number] is a ordinal number, started from 1. There
# shouldn't be gaps between numbers, otherwise custom shells defined after a # shouldn't be gaps between numbers, otherwise custom shells defined after a
# gap will not work. # gap will not work.
# #
# Resource values are two or three pipe separated values, which are in order: # Resource values are two or three pipe separated values, which are in order:
@@ -82,7 +82,7 @@
# there can be others). Observe memory taken by urxvt with top or ps. Also, # there can be others). Observe memory taken by urxvt with top or ps. Also,
# original tabbed extension is affected. # original tabbed extension is affected.
# #
# This change will affect i.e. dynamic font change - it will not expand # This change will affect i.e. dynamic font change - it will not expand
# window to reflect size of a font. Switching to next tab and back will # window to reflect size of a font. Switching to next tab and back will
# rearrange content of a tab to current window size. # rearrange content of a tab to current window size.
# #
@@ -112,7 +112,7 @@
# #
# 2019-09-13 15:15:18 # 2019-09-13 15:15:18
# - Added shortcut for creating new shell like in original tabbed # - Added shortcut for creating new shell like in original tabbed
# (SHIFT+Down). It can be disabled by an option "disable-shift-down". More # (SHIFT+Down). It can be disabled by an option "disable-shift-down". More
# information in README. # information in README.
# - Cleaned up a bit the code and comments. # - Cleaned up a bit the code and comments.
@@ -425,7 +425,7 @@ sub on_init {
($self->x_resource ('tab-numbers') or 'true') !~ /^(?:false|0|no)/i; ($self->x_resource ('tab-numbers') or 'true') !~ /^(?:false|0|no)/i;
$self->{disable_shift_down} = $self->{disable_shift_down} =
($self->x_resource ('disable-shift-down') ($self->x_resource ('disable-shift-down')
or 'false') =~ /^(?:true|1|yes)/i; or 'false') =~ /^(?:true|1|yes)/i;
%{$self->{tabcmds}} = (); %{$self->{tabcmds}} = ();
@@ -438,7 +438,7 @@ sub on_init {
if ($#args == 0) { if ($#args == 0) {
$self->{tabcmds}{$key} = [ $args[0] ]; $self->{tabcmds}{$key} = [ $args[0] ];
} else { } else {
# split command, insert '-e' before it, re-add tab name at the # split command, insert '-e' before it, re-add tab name at the
# beginning # beginning
(my @new_args) = ('-e'); (my @new_args) = ('-e');
push @new_args, split / /, $args[1]; push @new_args, split / /, $args[1];
@@ -576,7 +576,7 @@ sub tab_key_press {
$self->new_tab(@{$self->{tabcmds}{chr($keysym)}}); $self->new_tab(@{$self->{tabcmds}{chr($keysym)}});
return 1; return 1;
} elsif ($self->{disable_shift_down} and $keysym == 0x4e) { } elsif ($self->{disable_shift_down} and $keysym == 0x4e) {
# As a failsafe watch under CTRL+SHIFT+N for shell class (if # As a failsafe watch under CTRL+SHIFT+N for shell class (if
# SHIFT+DOWN is disabled). # SHIFT+DOWN is disabled).
$self->new_tab("shell"); $self->new_tab("shell");
return 1; return 1;