Code cleanup

Removed lines weren't really used.
This commit is contained in:
Bruno Sutic 2014-06-29 12:17:24 +02:00
parent 144a849901
commit 2fa5010bf4
3 changed files with 3 additions and 5 deletions

View file

@ -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

View file

@ -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)"

View file

@ -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