File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -101,14 +101,6 @@ class TmuxSession
101
101
def inspect_runner
102
102
_run (" select-pane -t #{target(:pane => runner_pane)}" )
103
103
_run (" copy-mode" )
104
- Vim.command (" let g:_VimTmuxInspecting = 1" )
105
- end
106
-
107
- def stop_inspecting_runner
108
- if Vim.evaluate (' exists("g:_VimTmuxInspecting")' ) != 0
109
- _run (" send-keys -t #{target(:pane => runner_pane)} q" )
110
- Vim.command (" unlet g:_VimTmuxInspecting" )
111
- end
112
104
end
113
105
114
106
def current_panes
@@ -129,7 +121,6 @@ class TmuxSession
129
121
130
122
def runner_pane
131
123
if @r unner_pane.nil?
132
- type = Vim.evaluate (' exists("g:_VimTmuxInspecting")' ) != 0
133
124
use_nearest_pane = Vim.evaluate (' exists("g:VimuxUseNearestPane")' ) != 0
134
125
if use_nearest_pane && nearest_inactive_pane_id
135
126
_run (" select-pane -t #{target(:pane => nearest_inactive_pane_id)}" )
@@ -146,23 +137,20 @@ class TmuxSession
146
137
end
147
138
148
139
@r unner_pane = nil
149
- clear_vim_cached_runner_pane
150
140
runner_pane
151
141
end
152
142
153
143
def interrupt_runner
154
- stop_inspecting_runner
155
144
_run (" send-keys -t #{target(:pane => runner_pane)} ^c" )
156
145
end
157
146
158
147
def run_shell_command (command )
159
- stop_inspecting_runner
148
+ _run ( " send-keys -t #{target(:pane => runner_pane)} q C-u " )
160
149
_send_command (command , target (:pane = > runner_pane))
161
150
_move_up_pane
162
151
end
163
152
164
153
def close_other_panes
165
- stop_inspecting_runner
166
154
if _run (" list-panes" ).split (" \n " ).length > 1
167
155
_run (" kill-pane -a" )
168
156
end
You can’t perform that action at this time.
0 commit comments