-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Description
Describe the bug
Invoking rename
method will throw this error when you attempt it on empty space:
E5108: Error executing lua ~\.vim-plug\renamer.nvim/lua/renamer/init.lua:129: attempt to perform arithmetic on local 'word_start' (a nil value)
stack traceback:
~\.vim-plug\renamer.nvim/lua/renamer/init.lua:129: in function 'rename'
[string ":lua"]:1: in main chunk
To reproduce
Steps to reproduce the behavior:
- Place cursor on space or newline.
- Run
lua require('renamer').rename()
. - See error.
Expected behavior
There should be short and less distracting message displayed instead.
Environment
- Renamer: v3.0.2
- Neovim: v0.5.1
- OS: Windows, version: 10
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working