Skip to content

Commit

Permalink
Bug fix: Exclude Vim swap files with names of the form .*.s[^w]?
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed Nov 3, 2011
1 parent bb627d5 commit 913807b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion autoload/xolox/notes.vim
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion misc/notes/scanner.py
Expand Up @@ -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:
Expand Down

0 comments on commit 913807b

Please sign in to comment.