Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decoding Forsencode with encoded newline cause error. #1

Open
rod41732 opened this issue Jul 29, 2022 · 0 comments
Open

Decoding Forsencode with encoded newline cause error. #1

rod41732 opened this issue Jul 29, 2022 · 0 comments

Comments

@rod41732
Copy link
Collaborator

rod41732 commented Jul 29, 2022

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
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

No branches or pull requests

1 participant