Skip to content

Commit 7b2f295

Browse files
committed
trim content before checking length
1 parent 8bb4a07 commit 7b2f295

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/handlers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ function handlers(app, opts, done){
145145

146146
store.dispatch(creators.resetFileQueue());
147147

148-
if(isNew && content.length){
148+
if(isNew && _.trim(content).length){
149149
store.dispatch(creators.queueFileChange(filename));
150150
showSaveOverlay();
151151
return;

0 commit comments

Comments
 (0)