File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ function VimuxRunCommand(command, ...)
39
39
endif
40
40
41
41
let g: _VimTmuxCmd = a: command
42
+ let g: _VimTmuxCmdAutoreturn = l: autoreturn
42
43
43
44
if l: autoreturn == 1
44
45
ruby CurrentTmuxSession.new .run_shell_command (Vim.evaluate (" g:_VimTmuxCmd" ))
@@ -57,6 +58,7 @@ function RunVimTmuxCommand(command, ...)
57
58
endif
58
59
59
60
let g: _VimTmuxCmd = a: command
61
+ let g: _VimTmuxCmdAutoreturn = l: autoreturn
60
62
61
63
if l: autoreturn == 1
62
64
ruby CurrentTmuxSession.new .run_shell_command (Vim.evaluate (" g:_VimTmuxCmd" ))
@@ -68,7 +70,11 @@ endfunction
68
70
69
71
function VimuxRunLastCommand ()
70
72
if exists (" g:_VimTmuxCmd" )
71
- ruby CurrentTmuxSession.new .run_shell_command (Vim.evaluate (" g:_VimTmuxCmd" ))
73
+ if g: _VimTmuxCmdAutoreturn == 1
74
+ ruby CurrentTmuxSession.new .run_shell_command (Vim.evaluate (" g:_VimTmuxCmd" ))
75
+ else
76
+ ruby CurrentTmuxSession.new .run_shell_command (Vim.evaluate (" g:_VimTmuxCmd" ), false)
77
+ endif
72
78
else
73
79
echo " No last command"
74
80
endif
You can’t perform that action at this time.
0 commit comments