Closed ivanp7 closed 2 years ago
Can you share the example file so I can reproduce this?
diff --git a/fixes/smartbuy_extra_keys/install.sh b/fixes/smartbuy_extra_keys/install.sh
index 81c0194..a2f945e 100755
--- a/fixes/smartbuy_extra_keys/install.sh
+++ b/fixes/smartbuy_extra_keys/install.sh
@@ -1,9 +1,9 @@
#!/bin/sh
+cat xmodmap >> "$XDG_CONFIG_HOME/X11/xmodmap"
+
cd "$(dirname "$0")"
MAP_FILE=smartbuy-keyboard.map
{ sudo dumpkeys | head -1; cat "$MAP_FILE"; } | sudo tee -a /usr/local/share/kbd/keymaps/$MAP_FILE
sudo chmod 644 /usr/local/share/kbd/keymaps/$MAP_FILE
-cat xmodmap >> "$XDG_CONFIG_HOME/X11/xmodmap"
-
This happens with any patch/diff.
I also tried nvimpager -c -- -u NORC
, got the same problem with default colors.
With nvimpager -c -- -u NONE
I get colorless output.
I am sorry I can not reproduce this with the given file. I tried termite and st from the NixOS repos. My neovim is also 0.6 from NixOS.
I checked out 2c2e137 and ran
./nvimpager -c ./issue-59-example.diff -u NORC
./nvimpager -c ./issue-59-example.diff
./nvimpager -p ./issue-59-example.diff -u NORC
./nvimpager -p ./issue-59-example.diff
For me the highlight does not leak.
Can you cross check with another terminal and maybe even vanilla st?
./nvimpager -c ./issue-59-example.diff -u NORC > issue-59-example.diff.log
yields this file for me:
issue-59-example.diff.log
Is that the same for you?
We can also try to check your terminal. What happens if you cat mini.txt
with this file?
mini.txt
Both vanilla st
and termite
work better, but still have uncolored spaces:
Is that the same for you?
Yes, diff
reports outputs are the same.
What happens if you
cat mini.txt
with this file?
All custom st
, vanilla st
, and termite
show this:
I modified your mini.txt to show text in red background (I changed 31 to 41), and this is what I get in all terminals:
Linux console and fbterm work fine. It is not nvimpager
problem nor st
terminal problem. I don't know, what's going on.
I updated my mini.txt to background colours like you siad but I can not reproduce this. I am currently on Arch Linux with several terminal emulators (st from aur) I get this:
I am sure now that this isn't nvimpager issue, because I've managed to reproduce the breakage in both st
and termite
. Right after start the colors are fine, but if I cd
into other directory, start graphical application from there AND cd
back, then colors break.
This is extremely odd, I cannot even guess what the reason may be.
Maybe your prompt uses strange escape sequences that are emitted when you cd
? Try st -e /bin/sh
or so.
I will close this now, but you can still post updates, maybe I have an idea that can help :crossed_fingers: Maybe you might have luck asking on unix.SE.
Thanks for help. Probably you're right, this is related to the shell... Luckily, this problem happens not that often and reset
fixes it temporarily.
Pager mode works fine:
I use custom
st
build as the terminal under Artix Linux.nvimpager
is installed asnvimpager-git
package (version 0.10.3.r3.g2c2e137-1) from AUR,neovim
is of version 0.6.0