### Steps to reproduce 1. Open `vim` 2. `:e /tmp/` (see a netrw buffer. Other directories are fine) 3. Press `s` to change sort order. See the status bar below shows `[No Name] [RO]` 4. Press `ZZ` to exit. 5. See `E37 No write since last change` `E162 No write since last change for buffer "/tmp/"` ### Expected behaviour Exits cleanly. ### Version of Vim 9.1.707 ### Environment Linux ### Logs and stack traces _No response_