rogual / neovim-dot-app

Mac OS X GUI for Neovim
1.13k stars 62 forks source link

Garbaged output when opening non-existing or invalid files in diff mode #298

Open Leonid99 opened 7 years ago

Leonid99 commented 7 years ago

When comparing an existing file to some file that Neovim.app fails to open produces an empty screen. After trying to resize the window or entering the command mode, it draws the separating line, but the right pane (i.e. the existing file) shows empty content. The command I used to produce this screenshot is: open -n -a Neovim -W -n --args --cwd /Users/username -d blahblah good_file.txt

screen shot 2016-09-21 at 12 47 35 pm

It's especially important to be able to diff against /dev/null, which does exist, but fails to be opened for reading. The reason that this is important is that I'm trying to use Neovim.app as a difftool for git, and when a file is created or deleted in this revision, git tries to compare it to /dev/null. Thanks!