Skip to content

Commit 2fa5010

Browse files
author
Bruno Sutic
committed
Code cleanup
Removed lines weren't really used.
1 parent 144a849 commit 2fa5010

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
line is more correct
77
- fix bug when yank-line is used in the last line in buffer. New 'solution' is
88
implemented for copying multiple lines.
9+
- code cleanup
910

1011
### v0.0.2, Jun 25, 2014
1112

scripts/copy_line.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ REMOTE_SHELL_WAIT_TIME="0.4"
77

88
source "$CURRENT_DIR/key_binding_helpers.sh"
99

10-
COPY_COMMAND="$*"
11-
1210
# sets a TMUX_COPY_MODE that is used as a global variable
1311
get_tmux_copy_mode() {
1412
TMUX_COPY_MODE="$(tmux show-option -gwv mode-keys)"

yank.tmux

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,13 @@ set_copy_mode_bindings() {
4747
}
4848

4949
set_copy_line_bindings() {
50-
local copy_command="$1"
51-
tmux bind-key "$(yank_line_key)" run-shell "$CURRENT_DIR/scripts/copy_line.sh $copy_command"
50+
tmux bind-key "$(yank_line_key)" run-shell "$CURRENT_DIR/scripts/copy_line.sh"
5251
}
5352

5453
main() {
5554
local copy_command="$(clipboard_copy_command)"
5655
error_handling_if_command_not_present "$copy_command"
5756
set_copy_mode_bindings "$copy_command"
58-
set_copy_line_bindings "$copy_command"
57+
set_copy_line_bindings
5958
}
6059
main

0 commit comments

Comments
 (0)