Support running a single test when the current function around the cursor
ends in '?'.
This commit is contained in:
Kartik Agaram 2019-11-17 13:56:54 -08:00
parent 86894ca577
commit eafdbfc103
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ if empty($TMUX)
" can't avoid the function because that disables the wait for <CR> prompt
noremap <Leader>t {:keeppatterns /^[^ #]<CR>:call RunTestMoveCursor("<C-r><C-w>")<CR>
function RunTestMoveCursor(arg)
exec "!./run_one_test ".expand("%")." ".a:arg
exec "!./run_one_test ".expand("%")." '".a:arg."'"
exec "normal \<C-o>"
endfunction
else