mirror of
https://github.com/marktext/marktext.git
synced 2025-05-04 00:39:23 +08:00
fix: Linux rename syscall when using side bar (#845)
This commit is contained in:
parent
21e6ebc1ff
commit
c5852252aa
@ -109,7 +109,7 @@ class Watcher {
|
||||
}
|
||||
|
||||
// rename syscall on Linux (chokidar#591)
|
||||
if (isLinux && event === 'rename') {
|
||||
if (isLinux && type === 'file' && event === 'rename') {
|
||||
const { watchedPath } = details
|
||||
// Use the same watcher and re-watch the file.
|
||||
watcher.unwatch(watchedPath)
|
||||
|
Loading…
Reference in New Issue
Block a user