Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quickrun実行後待機中にquickrun窓のないタブに移動するとquickrun窓が勝手に生成される #6

Open
ujihisa opened this issue Jun 7, 2011 · 4 comments

Comments

@ujihisa
Copy link
Contributor

ujihisa commented Jun 7, 2011

5と似て非なるissue�。まあ仕様なら仕様ということでよいですが、毎回結構驚かされるというか。

@thinca
Copy link
Owner

thinca commented Jun 7, 2011

逆に、どうなってくれたら嬉しいですか?

@ujihisa
Copy link
Contributor Author

ujihisa commented Jun 7, 2011

うーん、例えばこんな感じとか。

diff --git autoload/quickrun/outputter/buffer.vim autoload/quickrun/outputter/buffer.vim
index 9f5a0f4..880a590 100644
--- autoload/quickrun/outputter/buffer.vim
+++ autoload/quickrun/outputter/buffer.vim
@@ -51,7 +51,12 @@ function! s:outputter.finish(session)
   execute self._line
   silent normal! zt
   if !self.config.into
-    execute winnr 'wincmd w'
+    if exists('s:quickrun_closelater')
+      unlet s:quickrun_closelater
+      q
+    else
+      execute winnr 'wincmd w'
+    endif
   endif
   redraw
 endfunction
@@ -71,6 +76,9 @@ function! s:open_result_window(sp)
   elseif bufwinnr(s:bufnr) != -1
     execute bufwinnr(s:bufnr) 'wincmd w'
   else
+    if tabpagewinnr(s:bufnr) != -1
+      let s:quickrun_closelater = 1
+    endif
     execute a:sp 'split'
     execute 'buffer' s:bufnr
   endif

@ujihisa
Copy link
Contributor Author

ujihisa commented Jun 8, 2011

あ、いや、上記パッチにはバグがありました。一度どこかでquickrunバッファを生成して閉じてしまうと、QuickRunコマンドではもう二度とあらわれなくなってしまいます・・・

@thinca
Copy link
Owner

thinca commented Dec 28, 2015

これどうしましょ。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants