From de6546fa4347e6704941cb436f5439760bda3493 Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Tue, 24 Jun 2014 22:11:24 -0700 Subject: [PATCH] Don't sync title for shadow notes. See https://github.com/xolox/vim-notes/issues/55 --- autoload/xolox/notes.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/xolox/notes.vim b/autoload/xolox/notes.vim index b56d0f6..b6385cc 100644 --- a/autoload/xolox/notes.vim +++ b/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)