]> git.madduck.net Git - etc/vim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Call 'cclose' after 'grep' in case quickfix is open on autocmd QuickFixCmdPost
authorantoinemadec <ajamadec@gmail.com>
Thu, 20 Sep 2018 22:38:15 +0000 (15:38 -0700)
committerantoinemadec <ajamadec@gmail.com>
Thu, 20 Sep 2018 23:00:42 +0000 (16:00 -0700)
autoload/flake8.vim

index 81aedfd3bbc52d882db506ee26ea936465fb9bd3..d21664ea5f16ebecaeadaefa9770eb8fe7277732 100644 (file)
@@ -132,7 +132,6 @@ function! s:Flake8()  " {{{
     endif
 
     set lazyredraw   " delay redrawing
-    cclose           " close any existing cwindows
 
     " set shellpipe to > instead of tee (suppressing output)
     set shellpipe=>
@@ -141,6 +140,9 @@ function! s:Flake8()  " {{{
     let &grepformat="%f:%l:%c: %m\,%f:%l: %m"
     let &grepprg=s:flake8_cmd
     silent! grep! "%"
+    " close any existing cwindows,
+    " placed after 'grep' in case quickfix is open on autocmd QuickFixCmdPost
+    cclose
 
     " restore grep settings
     let &grepformat=l:old_gfm