numToStr / FTerm.nvim

:fire: No-nonsense floating terminal plugin for neovim :fire:
MIT License
721 stars 24 forks source link

run() function stopped working #65

Closed dzfrias closed 1 year ago

dzfrias commented 1 year ago

Problem

When a new terminal is created with the run() function, instead of running the inputted command, something like: $ table: HEXNUM is run instead.

After doing some testing, this broke in commit f3fb0fe4d2ada78c3449acf7849dd52ea46a6c13.

Recreating

With a fresh version of FTerm.nvim, put this in your init.vim:

nnoremap <leader>r :w<CR> :lua require('FTerm').run({'echo', 'hello'})<CR>

or whatever the equivalent is in Lua.

Now when r is pressed, the command doesn't work and behaves as described in the 'Problem' section.

After going back to the commit before f3fb0fe4d2ada78c3449acf7849dd52ea46a6c13, everything worked again.

numToStr commented 1 year ago

Thanks for the report. Should be fixed by https://github.com/numToStr/FTerm.nvim/commit/0080eaeca3f3ed62d3a1b3d0f84b077dacf88053

dzfrias commented 1 year ago

Great! Thanks