Test failing commands

This commit is contained in:
baabelfish 2016-03-15 00:15:38 +02:00
commit 68d7b51d9d
7 changed files with 63 additions and 25 deletions

View file

@ -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