Skip to content

Commit

Permalink
Fix terribly annying vim thing
Browse files Browse the repository at this point in the history
Without this, nin crashes all the time when using vim to edit files.
  • Loading branch information
sigvef committed Apr 20, 2019
1 parent 82173d8 commit 1868fbd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nin/backend/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) +
Expand Down

0 comments on commit 1868fbd

Please sign in to comment.