Sublime Forum

ST4 4121: window not closing when closing file from EDITOR

#1

I use Sublime Text with EDITOR=“subl -w” for years now and with 4121 it stopped working as expected. When I close the file after editing, the focus goes back to the terminal and Sublime Text is left with an empty file instead of closing. When I switch back to Sublime Text and close the empty file, the window also closes. I have close_windows_when_empty set to true.

0 Likes

#2

I just found https://github.com/sublimehq/sublime_text/issues/4808 and https://github.com/sublimehq/sublime_text/issues/4958 which seem to describe the same issue.

0 Likes

#3

Same issue here. 4113 worked as expected but the newly released 4121 does not. :frowning:

0 Likes

#4

close_windows_when_empty stopped working when set to true in user settings (overriding) in version 4121.

This is about Fixed window unexpectedly closing when project has no added folders and "close_windows_when_empty" is enabled.

1 Like

#5

Same here, but it’s not restricted to opening from EDITOR! Dragging a text file on the ST dock icon and closing via tab close or even just opening a new window, enter some text and remove the text again yields the same result: All tabs are gone (event the “untitled” one in the last scenario) but the window stays open.

0 Likes

#6

This has been fixed in build 4122.

0 Likes

#7

Perfect, everything back to normal :slight_smile:

Thank you!

0 Likes

#8

Thank you so much!

0 Likes

#9

Do we know when build 4122 will come to Mac? My updates are not picking it up.

0 Likes

#10

All builds reach all platforms immediately. You’re probably on the stable channel, 4122 is a development build.

0 Likes