Permalink
Browse files

Bug fix: Exclude Vim swap files with names of the form .*.s[^w]?

  • Loading branch information...
1 parent bb627d5 commit 913807b2ad280d990112ce59a38ce950885e5586 @xolox committed Nov 3, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 autoload/xolox/notes.vim
  2. +1 −1 misc/notes/scanner.py
View
@@ -6,7 +6,7 @@
" Note: This file is encoded in UTF-8 including a byte order mark so
" that Vim loads the script using the right encoding transparently.
-let g:xolox#notes#version = '0.12.3'
+let g:xolox#notes#version = '0.12.4'
function! xolox#notes#shortcut() " {{{1
" The "note:" pseudo protocol is just a shortcut for the :Note command.
View
@@ -93,7 +93,7 @@ def tokenize(text):
notes_on_disk = {}
for filename in os.listdir(user_directory):
- if filename != '.swp' and not fnmatch.fnmatch(filename, '.*.sw?'): # (Vim swap files are ignored)
+ if filename != '.swp' and not fnmatch.fnmatch(filename, '.*.s??'): # (Vim swap files are ignored)
filename = os.path.join(user_directory, filename)
notes_on_disk[filename] = dict(filename=filename, last_modified=os.path.getmtime(filename))
if first_use:

0 comments on commit 913807b

Please sign in to comment.