Include explicit enter string
This commit is contained in:
parent
626531af5d
commit
620f0ca989
@ -325,11 +325,10 @@ endfunction
|
|||||||
function! s:SendTextToRunner(lines)
|
function! s:SendTextToRunner(lines)
|
||||||
let whitespace_stripped = map(a:lines, 'substitute(v:val,"^\\s*","","")')
|
let whitespace_stripped = map(a:lines, 'substitute(v:val,"^\\s*","","")')
|
||||||
let without_empty_lines = filter(whitespace_stripped, "!empty(v:val)")
|
let without_empty_lines = filter(whitespace_stripped, "!empty(v:val)")
|
||||||
let joined_lines = join(without_empty_lines, "\r")
|
let joined_lines = join(without_empty_lines, "\r") . "\r"
|
||||||
let send_keys_cmd = s:TargetedTmuxCommand("send-keys", s:runner_pane)
|
let send_keys_cmd = s:TargetedTmuxCommand("send-keys", s:runner_pane)
|
||||||
let targeted_cmd = send_keys_cmd . ' ' . shellescape(joined_lines)
|
let targeted_cmd = send_keys_cmd . ' ' . shellescape(joined_lines)
|
||||||
call s:SendTmuxCommand(targeted_cmd)
|
call s:SendTmuxCommand(targeted_cmd)
|
||||||
call s:SendEnterSequence()
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:SendCtrlD()
|
function! s:SendCtrlD()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user