Skip to content

Conversation

bfredl
Copy link
Member

@bfredl bfredl commented Jun 13, 2018

Rebase of #6351. I began looking into fixing the tests, but some checks should probably be added to the code as @ZyX-I suggested.

Though there is no principal reason to forbid composing chars, as we can just use the improved schar_T type from #7992 for this, however fixing this will be a bit larger change (though mainly because fillchars are entangeld with listchars, so it would make sense to change both at the same time), so I will do this in separate PR.

This option allows configuring what character is shown on the empty
lines at the end of a buffer, previously hardcoded to ‘~’
@marvim marvim added the WIP label Jun 13, 2018
@bfredl bfredl force-pushed the eob branch 2 times, most recently from 3d0d9ad to 45bb331 Compare June 14, 2018 11:02
@bfredl
Copy link
Member Author

bfredl commented Jun 14, 2018

Update: (single-cell) multibyte chars work, but not doublewidth, compoing chars, nor invalid UTF-8 (throws error)

Added vim_diff.txt note. Marking RFC.

@bfredl bfredl changed the title [WIP] Add fillchar for EndOfBuffer [RFC] Add fillchar for EndOfBuffer and check for invalid UTF-8 Jun 14, 2018
@bfredl
Copy link
Member Author

bfredl commented Jun 14, 2018

failures the typical unrelated ones.

@bfredl bfredl merged commit c46997a into neovim:master Jun 14, 2018
justinmk added a commit that referenced this pull request Jul 18, 2018
FEATURES:
07499a8 #8709 man.vim: C highlighting for EXAMPLES section
07f82ad #8699 TUI: urxvt: also send xterm focus-reporting seqs
40911e4 #8616 API: emit nvim_buf_lines_event from :terminal
c46997a #8546 fillchars: Add "eob" flag

FIXES:
74d19f6 #8576 startup: avoid blank stdin buffer if other files were opened
4874214 #8737 Only waitpid() for processes that we care about
cd6e7e8 #8743 Check all child processes for exit in SIGCHLD handler
c230ef2 #8746 channel.c: Prevent channel_destroy_early() from freeing uninitialized rpc stuff
0ed8b12 #8681 transstr_buf: fix length comparison
d241f27 #8708 TUI: Fix standout mode
9afed40 #8698 man.vim: fix for mandoc
e889640 #8682 provider/node: npm --loglevel silent
1cbc830 #8613 API: nvim_win_set_cursor: set curswant
bf6048e #8628 checkhealth: Python: fix VIRTUAL_ENV check
3cc3506 #8528 checkhealth: node.js: also search yarn

CHANGES:
b751449 #8619 defaults: shortmess+=F
1248178 #8578 highlight: high-priority CursorLine if fg is set.
01570f1 #8726 terminal: handle &confirm and :confirm on unloading
56065bb #8721 screen: truncate showmode messages
bf2460e #7551 buffer: fix copying :setlocal options
c1c14fa #8520 Ex mode: always "improved" (gQ)
050f397 #7992 options: remove 'maxcombine` option (always 6)

INTERNAL:
463da84 #7992 screen: use UTF-8 representation
coditva pushed a commit to coditva/neovim that referenced this pull request Jul 28, 2018
FEATURES:
07499a8 neovim#8709 man.vim: C highlighting for EXAMPLES section
07f82ad neovim#8699 TUI: urxvt: also send xterm focus-reporting seqs
40911e4 neovim#8616 API: emit nvim_buf_lines_event from :terminal
c46997a neovim#8546 fillchars: Add "eob" flag

FIXES:
74d19f6 neovim#8576 startup: avoid blank stdin buffer if other files were opened
4874214 neovim#8737 Only waitpid() for processes that we care about
cd6e7e8 neovim#8743 Check all child processes for exit in SIGCHLD handler
c230ef2 neovim#8746 channel.c: Prevent channel_destroy_early() from freeing uninitialized rpc stuff
0ed8b12 neovim#8681 transstr_buf: fix length comparison
d241f27 neovim#8708 TUI: Fix standout mode
9afed40 neovim#8698 man.vim: fix for mandoc
e889640 neovim#8682 provider/node: npm --loglevel silent
1cbc830 neovim#8613 API: nvim_win_set_cursor: set curswant
bf6048e neovim#8628 checkhealth: Python: fix VIRTUAL_ENV check
3cc3506 neovim#8528 checkhealth: node.js: also search yarn

CHANGES:
b751449 neovim#8619 defaults: shortmess+=F
1248178 neovim#8578 highlight: high-priority CursorLine if fg is set.
01570f1 neovim#8726 terminal: handle &confirm and :confirm on unloading
56065bb neovim#8721 screen: truncate showmode messages
bf2460e neovim#7551 buffer: fix copying :setlocal options
c1c14fa neovim#8520 Ex mode: always "improved" (gQ)
050f397 neovim#7992 options: remove 'maxcombine` option (always 6)

INTERNAL:
463da84 neovim#7992 screen: use UTF-8 representation
@audunolsen
Copy link

audunolsen commented Aug 3, 2018

How do you use the fillchars option in practice to hide the tilde completely?

set fillchars=eob:- works, I can successfully swap the tilde for a "-".
set fillchars=eob: doesn't, neither does set fillchars=eob:' '

Suggestions?

edit: never mind. set fcs=eob:\ works!

@jamessan
Copy link
Member

jamessan commented Aug 3, 2018

edit: never mind. set fcs=eob:\ works!

Right. :help option-backslash :)

@nhooyr
Copy link
Contributor

nhooyr commented Jun 13, 2020

To avoid trailing whitespace you can also do:

let &fcs='eob: '

Akianonymus added a commit to Akianonymus/NvChad that referenced this pull request Jul 14, 2021
This avoids the situation when the initial screen looks out of place
because there is some pre rendered text

neovim/neovim#8546
Akianonymus added a commit to Akianonymus/NvChad that referenced this pull request Jul 15, 2021
This avoids the situation when the initial screen looks out of place
because there is some pre rendered text

neovim/neovim#8546
Akianonymus added a commit to Akianonymus/NvChad that referenced this pull request Jul 15, 2021
This avoids the situation when the initial screen looks out of place
because there is some pre rendered text

neovim/neovim#8546
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

Successfully merging this pull request may close these issues.

7 participants