File tree Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ enter_tmux_copy_mode() {
38
38
39
39
start_tmux_selection () {
40
40
if tmux_is_at_least 2.4; then
41
- echo " $TMUX_COPY_MODE " >> /tmp/tmux
42
41
tmux send -X begin-selection
43
42
elif [ " $TMUX_COPY_MODE " == " vi" ]; then
44
43
# vi copy mode
@@ -94,19 +93,13 @@ go_to_the_end_of_current_line() {
94
93
}
95
94
96
95
yank_current_line () {
97
- if tmux_is_at_least 2.4; then
98
- enter_tmux_copy_mode
99
- tmux send -X select-line
100
- yank_to_clipboard
101
- else
102
- go_to_the_beginning_of_current_line
103
- add_sleep_for_remote_shells
104
- enter_tmux_copy_mode
105
- start_tmux_selection
106
- end_of_line_in_copy_mode
107
- yank_to_clipboard
108
- go_to_the_end_of_current_line
109
- fi
96
+ go_to_the_beginning_of_current_line
97
+ add_sleep_for_remote_shells
98
+ enter_tmux_copy_mode
99
+ start_tmux_selection
100
+ end_of_line_in_copy_mode
101
+ yank_to_clipboard
102
+ go_to_the_end_of_current_line
110
103
display_message ' Line copied to clipboard!'
111
104
}
112
105
You can’t perform that action at this time.
0 commit comments