jarun/nnn

Opening a text file with option `-c` results in corrupted screen with Neovim

itaranto opened this issue · 1 comments

By just setting NNN_OPTS=c, if I open a text file with Enter then the terminal screen gets "corrupted" (see below).

Environment details (Put x in the checkbox along with the information)

  • Operating System: Arch Linux
  • Desktop Environment: Sway
  • Terminal Emulator: Alacritty
  • Shell: fish
  • Custom desktop opener (if applicable): None (NNN_OPENER not set)
  • [] Program options used:
  • Configuration options set: NNN_OPTS=cdouU and NNN_OPTS=c
  • Plugins are installed
  • Issue exists on nnn master (3176eaa8)

Exact steps to reproduce the issue

  • Make sure Neovim (neovim.desktop) is the default application for text/plain.
  • Open nnn from the terminal
  • Open a text file using Enter (not e)
  • Let the file be opened by Neovim
  • The input keys seem to be picked by both applications: nvim and nnn at the same time, resulting in a corrupted screen. See the attached video.
recording.mp4

nnndbg.log

I also tried with Neovim' s vanilla settings and the issue remains the same.

The option -c is to manually set a cli-only opener, e.g. I have the following:

NNN_OPENER: /home/vaio/.config/nnn/plugins/nuke