Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb8f53a2

Browse files
authored
Avoid replacing quickfix window -fix#58 (#87)
* Avoid replacing quickfix window -fix#58* Add comments about using 'wincmd p' on quickfix
1 parent434719c commitb8f53a2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

‎autoload/SingleCompile.vim‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1423,6 +1423,11 @@ function! s:CompileRunInternal(comp_param, async) " {{{1
14231423

14241424
letl:cur_filepath2=expand('%:p')
14251425

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
14261431
ifl:cur_filepath!=l:cur_filepath2
14271432
exec'edit' .l:cur_filepath
14281433
endif
@@ -1435,6 +1440,11 @@ function! s:CompileRunInternal(comp_param, async) " {{{1
14351440
\.'output if the program has terminated.'
14361441
endif
14371442

1443+
" only use l:cur_filepath on a regular window. If the cursor is on
1444+
" quickfix jump to the last accessed window
1445+
if &buftype=='quickfix'
1446+
wincmdp
1447+
endif
14381448
ifl:cur_filepath!=l:cur_filepath2
14391449
exec'edit' .l:cur_filepath2
14401450
endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp