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
:set list
has no effect in a :terminal
buffer
#5074
Comments
There are no tab characters at all because they must be processed by libvterm and converted to spaces. Characters must be processed by libvterm because it must know tab width. Also tab width must not depend on &ts value because in terminal it is fixed and equal to 8. |
shows x's where spaces appear, in As @ZyX-I mentioned, This is just like when you select |
A terminal is capable of knowing the difference between a tab and the corresponding number of spaces. gnome-terminal does, for instance. Try running the command:
in gnome-terminal, and then slowly selecting character-by-character using the mouse. Notice that the tab gets selected or unselected as a unit, while you can select the spaces one-by-one. |
@joshtriplett You're right, and that also works on iTerm2 and Terminal.app. Though not if tmux 1.8 handles it before it reaches the host terminal, AFAICT. What's the tmux behavior for you? In the case of |
Indeed. The handling of a horizontal tab character is done by the |
nvim --version
::terminal
$TERM
: xterm-256colorActual behaviour
In a
:terminal
window,:set list
has no effect; for instance, tab characters do not display the visible characters defined inlistchars
.Expected behaviour
:set list
works in a:terminal
just as it does in any other vim buffer.Steps to reproduce using
nvim -u NORC
The text was updated successfully, but these errors were encountered: