stefanheule / smartless

A pager similar to less, but smarter
Apache License 2.0
25 stars 5 forks source link

possibly eating last line of output? #9

Open waldyrious opened 7 years ago

waldyrious commented 7 years ago

I'm not sure this one is smartless' fault, but maybe this can be an issue others come across. It appears that in some cases the last line of output is being cut off. Not really sure why. Take a look:

screenshot 2016-09-26 16 12 50

(git tree is an alias I have to draw a pretty commit graph: git config --global alias.tree "log --all --graph --pretty=format:\"%C(yellow)%h %C(magenta)%aD %C(cyan)%an %C(green)%d %C(reset)%s\"")

stefanheule commented 7 years ago

Does the problem happen when you invoke smartless directly? That is, what is the output of git tree | smartless and what is the output of git tree | smartless -+XF? Do both of these cut one line?

waldyrious commented 7 years ago

Yeah, it appears to be smartless-specific:

screenshot 2016-09-29 20 20 40
waldyrious commented 7 years ago

Forgot to test smartless -+XF:

screenshot 2016-09-29 20 26 12