about summary refs log tree commit diff stats
path: root/vimrc.vim
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-11-17 13:56:54 -0800
committerKartik Agaram <vc@akkartik.com>2019-11-17 17:21:15 -0800
commiteafdbfc103f3e2d539efa31244b2b2c768877775 (patch)
tree45a9f58ad3c7cda131ca449c9cecdd8682c349c9 /vimrc.vim
parent86894ca577c9869698c423db09dc01fa3ac56eb9 (diff)
downloadmu-eafdbfc103f3e2d539efa31244b2b2c768877775.tar.gz
5749
Support running a single test when the current function around the cursor
ends in '?'.
Diffstat (limited to 'vimrc.vim')
-rw-r--r--vimrc.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/vimrc.vim b/vimrc.vim
index 22d3f99a..72280753 100644
--- a/vimrc.vim
+++ b/vimrc.vim
@@ -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