Skip to content

Commit ec372c1

Browse files
committed
save prefs on changeFile
1 parent cfe7537 commit ec372c1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"react-mfb-iceddev": "^0.1.0",
2222
"react-style": "^0.4.0",
2323
"skrim": "0.0.3",
24-
"snacks": "^0.3.0",
24+
"snacks": "^0.3.1",
2525
"sovereign": "^0.3.0",
2626
"when": "^3.7.2"
2727
},

src/plugins/handlers.js

+1
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ function handlers(app, opts, done){
192192
const doc = documents.swap(path.join(cwd, filename));
193193
if(doc){
194194
workspace.changeFile(filename)
195+
.then(() => userConfig.set('last-file', filename))
195196
.then(() => workspace.updateContent(doc.getValue()))
196197
.then(function(){
197198
documents.focus();

0 commit comments

Comments
 (0)