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

Empty file without header produces incomplete grid #798

Closed
j-tai opened this issue Jan 10, 2020 · 3 comments
Closed

Empty file without header produces incomplete grid #798

j-tai opened this issue Jan 10, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@j-tai
Copy link

j-tai commented Jan 10, 2020

If you disable the header with --style or with BAT_STYLE, an incomplete grid is shown when displaying an empty file:

$ > empty.txt
$ bat --style=grid,numbers,snip empty.txt 
─────┬──────────────────────────────────────────
$

I have not set any BAT_* environment variables.

bat version: built from master (bat --version = 0.12.1)

@sharkdp sharkdp added the bug Something isn't working label Jan 12, 2020
@sharkdp
Copy link
Owner

sharkdp commented Jan 12, 2020

Thank you for reporting this.

eth-p added a commit to eth-p/bat that referenced this issue Feb 26, 2020
eth-p added a commit to eth-p/bat that referenced this issue Feb 27, 2020
sharkdp pushed a commit that referenced this issue Feb 28, 2020
@sharkdp
Copy link
Owner

sharkdp commented Feb 28, 2020

Closed by @eth-p in #841

@sharkdp
Copy link
Owner

sharkdp commented Mar 22, 2020

This has been fixed in bat 0.13.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants