Decoding Forsencode with encoded newline cause error.
Opened this issue · 0 comments
rod41732 commented
When decoding forsencode with newline ('\n', encoded as fÖRsEn
) inside it, neovim will show the error
Error executing Lua callback: ...vim/site/pack/packer/start/forsen.nvim/plugin/forsen.lua:58: String cannot contain newlines
stack traceback:
[C]: in function 'nvim_buf_set_lines'
...vim/site/pack/packer/start/forsen.nvim/plugin/forsen.lua:58: in function<...vim/site/pack/packer/start/forsen.nvim/plugin/forsen.lua:51>
Reproduction
- encode some string that contains newline and save it into file.
- open then file with nvim
- decode the line by going into visual mode and
:ForsDecode
and press enter