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

Display width issue #10

Closed
vestrobaa opened this issue Dec 29, 2013 · 3 comments
Closed

Display width issue #10

vestrobaa opened this issue Dec 29, 2013 · 3 comments

Comments

@vestrobaa
Copy link

One character less than the specified width is displayed. This truncates the last character on a line if you $, and also hides the extends listchar for long lines.

For example: Goyou 30 will display 29 characters only

@junegunn
Copy link
Owner

Hey, thanks for the report.

Goyo command by default overrides NonText highlighting group so that they're not visible, and as a result, "extends" listchar will not be visible.

The "NonText" highlighting will be used for "eol", "extends" and "precedes"

So what you see here is in fact invisible "extends" listchar placed at the end of each line, making the window look narrower by one character. It will be obvious if you override NonText group again.

hi NonText ctermfg=red guifg=#ff0000

If you don't like this default behavior of hiding NonText group, you can use g:goyo_callbacks to revert the colors.

Do you think Goyo command should temporarily disable "extends" listchar? I'm not sure about this.

@vestrobaa
Copy link
Author

Thanks for the quick response. I'd suggest not to change it the extends listchar, keep it simple.

@junegunn
Copy link
Owner

Okay thanks. I'll close the issue. Let me know if you have any other problem.

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

No branches or pull requests

2 participants