Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't sync title for shadow notes.

See #55
  • Loading branch information...
commit de6546fa4347e6704941cb436f5439760bda3493 1 parent 68c1d55
@abhinav abhinav authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  autoload/xolox/notes.vim
View
2  autoload/xolox/notes.vim
@@ -176,7 +176,7 @@ function! xolox#notes#check_sync_title() " {{{1
let title = xolox#notes#current_title()
let name_on_disk = xolox#misc#path#absolute(expand('%:p'))
let name_from_title = xolox#notes#title_to_fname(title)
- if !xolox#misc#path#equals(name_on_disk, name_from_title)
+ if !xolox#misc#path#equals(name_on_disk, name_from_title) && match(name_on_disk, g:notes_shadowdir) != 0
call xolox#misc#msg#debug("notes.vim %s: Filename (%s) doesn't match note title (%s)", g:xolox#notes#version, name_on_disk, name_from_title)
let action = g:notes_title_sync
if action == 'prompt' && empty(name_from_title)
Please sign in to comment.
Something went wrong with that request. Please try again.