From 1868fbd0cfacc674d2d7b00d0a2782cf09546b34 Mon Sep 17 00:00:00 2001 From: Sigve Sebastian Farstad Date: Sat, 20 Apr 2019 23:57:19 +0200 Subject: [PATCH] Fix terribly annying vim thing Without this, nin crashes all the time when using vim to edit files. --- nin/backend/watch.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nin/backend/watch.js b/nin/backend/watch.js index 23cb8b0..cf32736 100644 --- a/nin/backend/watch.js +++ b/nin/backend/watch.js @@ -40,6 +40,10 @@ function watch(projectPath, cb) { return; } + if(path.endsWith('~')) { + return; + } + if (logFileChanges) { console.log(chalk.yellow('Change in project detected: ') + chalk.cyan(event) +