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

Command prompt crashed #39

Closed
sainnhe opened this issue Feb 8, 2019 · 8 comments
Closed

Command prompt crashed #39

sainnhe opened this issue Feb 8, 2019 · 8 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@sainnhe
Copy link

sainnhe commented Feb 8, 2019

Describe the bug

cfb524ea5e1ecaa7c0eb0ab2fbb6675e298eb31d in master branch changed ^S to ^P to show the command prompt. And after I type ^P and execute a command, nnn.vim crashed.

To Reproduce

most minimal configuration:

if has('nvim')
    set runtimepath^=~/.vim runtimepath+=~/.vim/after
    let &packpath = &runtimepath
endif
call plug#begin('~/.cache/vim/plugins')
Plug 'mcchrish/nnn.vim'
call plug#end()
  1. Compile and install nnn from master branch.
  2. Open vim (or nvim)
  3. Run command :NnnPicker
  4. Press key ^P, type ls
  5. See error

Expected behavior

After I execute ls, nnn.vim should continue to work.

Screenshots

peek 2019-02-08 11-17

Environment:

  • OS: Arch Linux
  • Terminal: GNOME Terminal 3.30.2 using VTE 0.54.3 +GNUTLS
  • Shell: zsh 5.7.1 (x86_64-pc-linux-gnu)
  • Vim version: neovim 0.3.4
  • Plugin manager: vim-plug
  • Plugin version: master
  • Nnn version: 2.2 (compile from master branch)

Additional context

none.

@sainnhe sainnhe added the bug Something isn't working label Feb 8, 2019
@mcchrish mcchrish added the help wanted Extra attention is needed label Feb 10, 2019
@mcchrish
Copy link
Owner

I'm able to replicate it. It doesn't seem to work with non-login shells?

I'm using iTerm in macOS and another way to replicate the issue is passing nnn as command, as I assume it runs as a non-login shell. My knowledge on shell environment behaviors is currently limited so I might not able to help.
screen shot 2019-02-10 at 11 25 55 am

cc @jarun

@jarun
Copy link
Collaborator

jarun commented Feb 10, 2019

@sainnhe are you saying ^S used to work but ^P has the issue?

I changed ^S to ^P because of jarun/nnn#200

@jarun
Copy link
Collaborator

jarun commented Feb 10, 2019

OK, I see the UI breaks.

@jarun
Copy link
Collaborator

jarun commented Feb 10, 2019

Please check if the issue is fixed with nnn master.

@mcchrish
Copy link
Owner

@jarun tested and works! 👍

@jarun
Copy link
Collaborator

jarun commented Feb 10, 2019

Awesome! Now we are using the stock prompt instead of the libreadline one when nnn is started in file picker mode.

@sainnhe
Copy link
Author

sainnhe commented Feb 10, 2019

@jarun Thanks for your work!!

@jarun
Copy link
Collaborator

jarun commented Feb 10, 2019

My pleasure!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants