about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-09-15 16:30:46 -0700
committerKartik Agaram <vc@akkartik.com>2019-09-15 16:31:31 -0700
commita5fa978579a2d9a08d89463e55b77ab3513ccfca (patch)
treef5a8928adfaaebf1a147a99530990ac1a88bb2fc
parentf39eaf81fa6cbc831b8021736c7f71b7d9587de7 (diff)
downloadmu-a5fa978579a2d9a08d89463e55b77ab3513ccfca.tar.gz
5662
Fix several breakages.
-rwxr-xr-xrun_one_test2
-rw-r--r--vimrc.vim4
2 files changed, 3 insertions, 3 deletions
diff --git a/run_one_test b/run_one_test
index 9452524e..b8eeaad5 100755
--- a/run_one_test
+++ b/run_one_test
@@ -19,5 +19,5 @@ fi
 
 set -e
 
-./debug_translate $(echo $FILES) /tmp/run_one_test.subx
+./debug_translate init.linux $(echo $FILES) /tmp/run_one_test.subx
 ONLY_CPP=1 CFLAGS=$CFLAGS ./subx --debug --trace run a.elf
diff --git a/vimrc.vim b/vimrc.vim
index ed3e1843..22d3f99a 100644
--- a/vimrc.vim
+++ b/vimrc.vim
@@ -83,7 +83,7 @@ if empty($TMUX)
   "   can't put initial cursor movement inside function because we rely on <C-r><C-w> to grab word at cursor
   "   can't put final cursor movement out of function because that disables the wait for <CR> prompt; function must be final operation of map
   "   can't avoid the function because that disables the wait for <CR> prompt
-  noremap <Leader>t {j0:keeppatterns /[^ #]<CR>:call RunTestMoveCursor("<C-r><C-w>")<CR>
+  noremap <Leader>t {:keeppatterns /^[^ #]<CR>:call RunTestMoveCursor("<C-r><C-w>")<CR>
   function RunTestMoveCursor(arg)
     exec "!./run_one_test ".expand("%")." ".a:arg
     exec "normal \<C-o>"
@@ -91,7 +91,7 @@ if empty($TMUX)
 else
   " we have tmux; we don't need to show any output in the Vim pane so life is simpler
   " assume the left-most window is for the shell
-  noremap <Leader>t {j0:keeppatterns /[^ #]<CR>:silent! call RunTestInFirstPane("<C-r><C-w>")<CR><C-o>
+  noremap <Leader>t {:keeppatterns /^[^ #]<CR>:silent! call RunTestInFirstPane("<C-r><C-w>")<CR><C-o>
   function RunTestInFirstPane(arg)
     call RunInFirstPane("./run_one_test ".expand("%")." ".a:arg)
   endfunction