Skip to content

Make listchars extends/precedes, fillchars lastline, and "<<<" consistent #15134

@Asheq

Description

@Asheq

Current Behavior

When wrap is off, the characters used to show that there is text before or after the visible part of the buffer line come from the listchars flags "precedes" and "extends", respectively:

:set nowrap
:set listchars=precedes:◁,extends:▷
:set list
image

When wrap is on, the character used to show that there is text AFTER the visible part of the buffer line is "@@@" but can be overridden by thefillchars flag "lastline". And if smoothscroll is on, the character used to show that there is text BEFORE the visible part of the buffer line is "<<<" and cannot be overridden.

:set nolist
:set wrap
:set display=lastline
:set smoothscroll
image
:set fillchars=lastline:➤
image

And if showbreak is not empty, then "<<<" is not displayed.

:set showbreak=➥
image

And if list is on and listchars includes the "precedes" flag, then the "precedes" character is drawn on top of the showbreak character.

:set list
image

Desired Behavior

  • listchars flag "precedes" should not be used when wrap is on, the same way that the listchars flag "extends" is not used when wrap is on.
  • The default "@@@" should be ">>>" to match the default "<<<" on the other side. It should also be override-able by a new fillchars flag called "firstline" to be the counterpart to the existing lastline flag.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions