Test failing commands
This commit is contained in:
parent
e58a94802a
commit
68d7b51d9d
7 changed files with 63 additions and 25 deletions
|
|
@ -290,16 +290,19 @@ function! util#goto_file()
|
|||
endfunction
|
||||
|
||||
|
||||
call operator#user#define('nimrepl_send', 'NimReplSend')
|
||||
function! NimReplSend(motion_wiseness)
|
||||
let start = getpos("'[")
|
||||
let stop = getpos("']")
|
||||
let start_line = start[1]
|
||||
let stop_line = stop[1]
|
||||
let str = join(getline(start_line, stop_line), "\n")
|
||||
echom str
|
||||
call features#repl#send(str)
|
||||
endfunction
|
||||
try
|
||||
call operator#user#define('nimrepl_send', 'NimReplSend')
|
||||
function! NimReplSend(motion_wiseness)
|
||||
let start = getpos("'[")
|
||||
let stop = getpos("']")
|
||||
let start_line = start[1]
|
||||
let stop_line = stop[1]
|
||||
let str = join(getline(start_line, stop_line), "\n")
|
||||
echom str
|
||||
call features#repl#send(str)
|
||||
endfunction
|
||||
catch
|
||||
endtry
|
||||
|
||||
|
||||
let &cpo = s:save_cpo
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue