[vim/vim] less mode going into edit mode still leaves the file readonly (Issue #14040)

63 views
Skip to first unread message

digidoor

unread,
Feb 15, 2024, 1:47:06 PM2/15/24
to vim/vim, Subscribed

Steps to reproduce

  1. Open any file using the builtin vim less mode (e.g. /usr/share/vim/vim91/macros/less.sh file.c or wherever $VIMRUNTIME/macros/less.sh may be).
  2. Press 'v' (aka the "visual editor" hotkey from less, emulated in vim's less mode) to drop out of less mode.
  3. Make any change to the file, such as deleting a line.
  4. Observe the usual W10: Warning: Changing a readonly file warning message that occurs when you try to edit a readonly file.

Expected behaviour

Switching to edit mode should reload the file into a non-readonly buffer or set the current buffer attributes to modifiable noreadonly.

Version of Vim

9.1 Included patches: 1-80 [Arch version being annoying about version numbers]

Environment

OS: Artix Linux (up to date)
terminal: various, konsole 23.08.4 and others
$TERM: xterm-256color (but it's not relevant)
shell: bash 5.2.26

Logs and stack traces

No response


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/14040@github.com>

Christian Brabandt

unread,
Feb 15, 2024, 3:49:43 PM2/15/24
to vim/vim, Subscribed

Closed #14040 as completed via 103f1df.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issue/14040/issue_event/11820874138@github.com>

Reply all
Reply to author
Forward
0 new messages