From 2fa5010bf448a76d336b9cd8b3592bd1491807ca Mon Sep 17 00:00:00 2001 From: Bruno Sutic Date: Sun, 29 Jun 2014 12:17:24 +0200 Subject: [PATCH] Code cleanup Removed lines weren't really used. --- CHANGELOG.md | 1 + scripts/copy_line.sh | 2 -- yank.tmux | 5 ++--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dcfe3c3..299199e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ line is more correct - fix bug when yank-line is used in the last line in buffer. New 'solution' is implemented for copying multiple lines. +- code cleanup ### v0.0.2, Jun 25, 2014 diff --git a/scripts/copy_line.sh b/scripts/copy_line.sh index 4f5d737..bb6afea 100755 --- a/scripts/copy_line.sh +++ b/scripts/copy_line.sh @@ -7,8 +7,6 @@ source "$CURRENT_DIR/key_binding_helpers.sh" -COPY_COMMAND="$*" - # sets a TMUX_COPY_MODE that is used as a global variable get_tmux_copy_mode() { TMUX_COPY_MODE="$(tmux show-option -gwv mode-keys)" diff --git a/yank.tmux b/yank.tmux index 408c6b8..7e3e857 100755 --- a/yank.tmux +++ b/yank.tmux @@ -47,14 +47,13 @@ } set_copy_line_bindings() { - local copy_command="$1" - tmux bind-key "$(yank_line_key)" run-shell "$CURRENT_DIR/scripts/copy_line.sh $copy_command" + tmux bind-key "$(yank_line_key)" run-shell "$CURRENT_DIR/scripts/copy_line.sh" } main() { local copy_command="$(clipboard_copy_command)" error_handling_if_command_not_present "$copy_command" set_copy_mode_bindings "$copy_command" - set_copy_line_bindings "$copy_command" + set_copy_line_bindings } main