micro icon indicating copy to clipboard operation
micro copied to clipboard

Readonly mode doesn't disallow undo, replace, retab...

Open dmaluka opened this issue 5 years ago • 1 comments

Description of the problem or steps to reproduce

Read-only mode (enabled via readonly option) doesn't fully disallow editing the buffer. It disables inserting and deleting text but doesn't disable at least the following operations:

  • undo/redo
  • replace
  • retab
  • comment/uncomment via comment plugin (since it uses Replace internally)

Specifications

Commit hash: ce46b8e OS: any Terminal: any

dmaluka avatar Aug 02 '20 15:08 dmaluka

Adding autocomplete to the list of operations that are not disallowed. I ran into this issue while trying to use Readonly buffers as menus in a plugin.

Andriamanitra avatar Mar 04 '25 11:03 Andriamanitra