No warning when editing a readonly file #2627
Labels
A-gui
Area: Helix gui improvements
C-enhancement
Category: Improvements
E-easy
Call for participation: Experience needed to fix: Easy / not much
E-good-first-issue
Call for participation: Issues suitable for new contributors
When opening a file you are not allowed to edit, no indication is given that this is the case. Also, when you start editing, there is no warning either. And then if you do
:wq
, Helix closes without issues. This means that you can think you have edited a file, without ever realizing that the file is readonly and nothing has changed.Vim on the other hand has
[readonly]
in the bottom bar when opening the file, gives a red colored warning when starting editing, and when:wq
is tried an error is shown and the editor remains open.The text was updated successfully, but these errors were encountered: