Skip to content

fix: do not throw stack trace when called in nomodifiable buffers - #130

Open
akioweh wants to merge 1 commit into
monaqa:masterfrom
akioweh:fix/nomodifiable-error
Open

akioweh wants to merge 1 commit into
monaqa:masterfrom
akioweh:fix/nomodifiable-error

Conversation

@akioweh

@akioweh akioweh commented Nov 9, 2026

Copy link
Copy Markdown

<C-X>/<C-A> no longer throws

Error in function dial#operator#increment_normal:line    1:
 E5108: Lua: .../.local/share/nvim/lazy/dial.nvim/lua/dial/command.lua:123: Buffer is not 'modifiable'
 stack traceback:
     [C]: in function 'nvim_buf_set_text'
     .../.local/share/nvim/lazy/dial.nvim/lua/dial/command.lua:123: in function 'operator_normal'
     [string ":lua"]:1: in main chunk

now we have the "normal" error:

E21: Cannot make changes, 'modifiable' is off

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant