filipdutescu / renamer.nvim

VS Code-like renaming UI for Neovim, writen in Lua.
Apache License 2.0
303 stars 11 forks source link

[Bug] Prevent empty word submission #57

Closed filipdutescu closed 3 years ago

filipdutescu commented 3 years ago

Describe the bug

You can use an empty string as the new name, which should not be allowed.

To reproduce

Steps to reproduce the behavior:

  1. Setup renamer
  2. Call renamer.rename()
  3. Submit an empty string as the new name

Expected behavior

An error should be issued and no renaming should take place (but the popup should close).

Environment

Screenshots

Additional context