Skip to content

Commit

Permalink
Don't sync title for shadow notes.
Browse files Browse the repository at this point in the history
See #55
  • Loading branch information
abhinav committed Jun 25, 2014
1 parent 68c1d55 commit de6546f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/xolox/notes.vim
Expand Up @@ -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)
Expand Down

0 comments on commit de6546f

Please sign in to comment.