We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent434719c commitb8f53a2Copy full SHA for b8f53a2
autoload/SingleCompile.vim
@@ -1423,6 +1423,11 @@ function! s:CompileRunInternal(comp_param, async) " {{{1
1423
1424
letl:cur_filepath2=expand('%:p')
1425
1426
+" only use l:cur_filepath on a regular window. If the cursor is on
1427
+" quickfix jump to the last accessed window
1428
+if &buftype=='quickfix'
1429
+wincmdp
1430
+endif
1431
ifl:cur_filepath!=l:cur_filepath2
1432
exec'edit' .l:cur_filepath
1433
endif
@@ -1435,6 +1440,11 @@ function! s:CompileRunInternal(comp_param, async) " {{{1
1435
1440
\.'output if the program has terminated.'
1436
1441
1437
1442
1443
1444
1445
1446
1447
1438
1448
1439
1449
exec'edit' .l:cur_filepath2
1450