Log "with code 0" when s:async_code == 0 #288
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
我在用
Asyncrun make
的时候, quickfix滚动到最后, 但是我经常无法反应过来这到底是有错误还是没有错误, 因为没有错误的时候, 是没有 "with code ?" 的, 所以我把日志统一了, 这样我只要看最后那一行是不是有 0 字样, 就知道是否执行成功了.当然, 最有辨识度的方法就是这行日志在非0退出码的时候以错误颜色显示, 但是quick fix貌似没啥好办法做自己的语法高亮了 (可以考虑用matchadd()的方式?)