newfile command keeps the editor contents from the last file

RESOLVED FIXED in 0.4.1

Status

Skywriter
Editor
P2
normal
RESOLVED FIXED
9 years ago
9 years ago

People

(Reporter: Dion Almaer, Assigned: Dion Almaer)

Tracking

Details

(Assignee)

Description

9 years ago
When you run "newfile foo", whatever was in the editor buffer stays there.

This was due to a check in newFile:

 if (content !== undefined) {
   // put in the new stuff
 }

this was false in the new file context. I am not sure how collab on fits in (when it loads up content and kicks things off) so I changed things to fix things in the collab off case. It feels like we should run the insertDocument("") type work even in collab mode when you create a NEW file though Joe?
(Assignee)

Updated

9 years ago
Status: NEW → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.