]> 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:

[WIP] Minor fixes
authorRahul <skvrahul@gmail.com>
Fri, 27 Mar 2020 12:00:09 +0000 (17:30 +0530)
committerRahul <skvrahul@gmail.com>
Fri, 27 Mar 2020 12:00:09 +0000 (17:30 +0530)
autoload/flake8.vim

index 157a717c8c2ef3b4f8f3c0ff83f1c0c7d8bda9d1..6b220f2130d825755d1681f96bf792ee678c8a21 100644 (file)
@@ -31,7 +31,7 @@ endfunction
 "" warnings 
 
 let s:displayed_warnings = 0
 "" warnings 
 
 let s:displayed_warnings = 0
-function! s:Warnings()
+function s:Warnings()
   if !s:displayed_warnings
     let l:show_website_url = 0
 
   if !s:displayed_warnings
     let l:show_website_url = 0
 
@@ -170,7 +170,7 @@ function! s:Flake8()  " {{{
     let l:has_results=results != []
     if l:has_results
        " save line number of each error message        
     let l:has_results=results != []
     if l:has_results
        " save line number of each error message        
-        for result in a:results:
+        for result in l:results:
             s:resultDict[result.lnum] = result.text
 
         " markers
             s:resultDict[result.lnum] = result.text
 
         " markers