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

tig status throws Encoding failure for unstaged files with very long lines (>2048 chars) #1227

Closed
MaxWinterstein opened this issue Aug 2, 2022 · 1 comment
Labels

Comments

@MaxWinterstein
Copy link

When having very long lines in a file, and trying to use tig status the preview of a file breaks when it contains long lines (>2048).

Running on a recent Intel MacBook, installed via brew.

tig -v
tig version 2.5.6
ncursesw version 6.3.20211021
readline version 8.1

Reproduction:

echo 'short line - you should see me' > test.txt
echo -n "freaking long line - i break things" {1..600} >> test.txt
echo '' >> test.txt
echo 'another short line - can you see me?' >> test.txt

tig status with test.txt untracked:

image

tig status with test.txt added:

image

Having the line not shown in full might be okay, but dying and not displaying the following rows lead to some confusion here 😉

@koutcher
Copy link
Collaborator

Thanks for reporting the issue. Indeed encoding failures should be reported but not fatal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants