about summary refs log tree commit diff stats
path: root/vimrc.vim
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-05-13 00:51:31 -0700
committerKartik Agaram <vc@akkartik.com>2020-05-18 00:44:49 -0700
commit456b44fbfb6003195aceef8ed41f194cd2e27b80 (patch)
tree9044af8f1e58c4fb601d397606b85906f4fb4994 /vimrc.vim
parente5118fa9fb6b1925f785f810767ca642097622d3 (diff)
downloadmu-456b44fbfb6003195aceef8ed41f194cd2e27b80.tar.gz
mu.subx: first code-gen test passing!
Diffstat (limited to 'vimrc.vim')
-rw-r--r--vimrc.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/vimrc.vim b/vimrc.vim
index 76641e63..7c5fa665 100644
--- a/vimrc.vim
+++ b/vimrc.vim
@@ -67,7 +67,8 @@ command! -nargs=0 L exec "%!grep label |grep -v clear-stream:loop"
 
 " show the call stack for the current line in the trace (by temporarily blowing away all earlier lines)
 "? command! -nargs=0 C 1,.!awk '$4 == "label"{x[$1] = $0; for(i in x){if(i >= $1){delete x[i]}}} END{for (i in x) {if (i < $1) {print x[i]}}}'
-command! -nargs=0 C 1,.!awk '{x[$1] = $0} END{for (i in x) {if (int(i) < int($1)) {print x[i]}}}'
+command! -nargs=0 C 1,.!awk '$4 == "label"{x[$1] = $0} END{for (i in x) {if (i < $1) {print x[i]}}}'
+"? command! -nargs=0 C 1,.!awk '{x[$1] = $0} END{for (i in x) {if (int(i) < int($1)) {print x[i]}}}'
 
 " run test around cursor
 if empty($TMUX)