Add "display" to 'truncate' when available

This matches what defaults.vim does.  We could omit "lastline" in this
case, but it doesn't hurt anything, and keeping it out of an if
statement allows it to be set without +eval.
This commit is contained in:
Tim Pope
2022-12-27 22:54:17 -05:00
parent d4b12eaf84
commit d2613eeaa1

View File

@@ -49,6 +49,9 @@ if !&sidescrolloff
set sidescrolloff=5 set sidescrolloff=5
endif endif
set display+=lastline set display+=lastline
if has('patch-7.4.2109')
set display+=truncate
endif
if &listchars ==# 'eol:$' if &listchars ==# 'eol:$'
set listchars=tab:>\ ,trail:-,extends:>,precedes:<,nbsp:+ set listchars=tab:>\ ,trail:-,extends:>,precedes:<,nbsp:+