Refine check for denote dir in dired revert
This pertains to the post-rename operation where relevant Dired buffers are reverted. The previous check would sometimes compare incompatible file paths and thus return nil when it shouldn't. Thanks to Sven Seebeck for reporting the problem in issue 17 over at the GitHub mirror: <https://github.com/protesilaos/denote/issues/17>.
This commit is contained in:
parent
a5986742be
commit
ee4aed6376
|
@ -261,7 +261,8 @@ ignores all its arguments."
|
|||
(lambda (buf)
|
||||
(with-current-buffer buf
|
||||
(when (and (eq major-mode 'dired-mode)
|
||||
(string-match-p (expand-file-name default-directory) (denote-directory)))
|
||||
(string-match-p (expand-file-name default-directory)
|
||||
(expand-file-name (denote-directory))))
|
||||
(revert-buffer))))
|
||||
(buffer-list)))
|
||||
|
||||
|
|
Loading…
Reference in a new issue