• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisão91812aa65ba47751ab5f173bf60f31015478df95 (tree)
Hora2023-01-20 00:41:08
Autorbadcoff33 <none@none>
Commiterbadcoff33

Mensagem de Log

count errors and warnings

Mudança Sumário

Diff

--- a/autoload/run.vim
+++ b/autoload/run.vim
@@ -15,9 +15,11 @@ enddef
1515 export def CloseCb(ch: channel)
1616 var ch_nr = split(string(ch), " ")[1]
1717 var d = g:run_dict[ch_nr]
18+ var errors: number
19+ var warnings: number
1820
1921 setwinvar(d.winid, "&wincolor", "PmenuSel")
20- g:run_2_tid = timer_start(3000, (_) => {
22+ g:run_2_tid = timer_start(4000, (_) => {
2123 popup_close(d.winid)
2224 augroup GroupRun
2325 autocmd!
@@ -35,6 +37,11 @@ export def CloseCb(ch: channel)
3537 endtry
3638 w:quickfix_title = d.cmd
3739 execute "silent bwipe" d.bufnr
40+ for e in getqflist({ "nr": "$", "all": 0 }).items
41+ errors += e.type == "e" ? 1 : 0
42+ warnings += e.type == "w" ? 1 : 0
43+ endfor
44+ popup_settext(d.winid, "Done: warnings=" .. warnings .. " errros=" .. errors)
3845 else
3946 setbufvar(d.bufnr, "&modified", 0)
4047 setbufvar(d.bufnr, "&modifiable", 0)
@@ -136,4 +143,4 @@ export def Run(dict: dict<any>)
136143 enddef
137144
138145 # Uncomment when testing
139-defcompile
146+# defcompile