-
Notifications
You must be signed in to change notification settings - Fork 185
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
Revert "Add highlighting for "osc diff" and similar commands" #1373
Conversation
This reverts commit 42d778b. Since that commit, I am constantly getting: ``` $ osc diff "/tmp/tmpzc68zopu" may be a binary file. See it anyway? ``` In the default openSUSE system, it is then shown like so: ``` ESC[1mIndex: omnibustype-jaldi-fonts.changesESC[0m =================================================================== ESC[1m--- omnibustype-jaldi-fonts.changes (revision 1)ESC[0m ESC[1m+++ omnibustype-jaldi-fonts.changes (working copy)ESC[0m ```
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## master #1373 +/- ##
==========================================
+ Coverage 28.93% 28.94% +0.01%
==========================================
Files 45 45
Lines 17065 17051 -14
==========================================
- Hits 4937 4935 -2
+ Misses 12128 12116 -12
☔ View full report in Codecov by Sentry. |
I'm trying to understand the root cause, because it works for me just fine on openSUSE Tumbleweed with PAGER=less. |
Easy:
|
This statement is not valid. Nothing has changed in $PAGER invocation - it remained unconditional. I'd prefer to move forward, keep the color output and fix the error. |
I see less has some heuristics concerning a few specks of \e... try this larger output:
|
One can Ctrl-Z out of osc while it's showing and then manually invoke less as well before the tmpfile goes away.
but also:
So bleeding color codes are the problem. |
Interesting, this works just fine for me and the diff is displayed normally:
|
less-590 from Leap 15.x behaves differently than less-633 on TW. |
The problem seems to be elsewhere than in the version of the less package. |
I've submitted #1376 that should fix the problem on Leap. |
That looks like a good approach. Curious though, what if pager isn't less at all? e.g. PAGER=/usr/bin/joe (SUSE's staple editor apart from vim ;-) ). |
What's important, proper pages such as |
Fixed in #1376 |
This reverts commit 42d778b.
Since that commit, I am constantly getting:
In the default openSUSE system, it is then shown like so: