mirror of
https://github.com/neovim/neovim.git
synced 2026-05-24 05:40:08 +00:00
fix(options): default 'titlestring' shows CWD #39233
Problem: In the default 'titlestring', if the containing directory is the CWD, it renders as "." Solution: Add `:p` to the titlestring.
This commit is contained in:
2
runtime/lua/vim/_meta/options.gen.lua
generated
2
runtime/lua/vim/_meta/options.gen.lua
generated
@@ -7499,7 +7499,7 @@ vim.go.titleold = vim.o.titleold
|
||||
--- The default (empty) behaviour is equivalent to:
|
||||
---
|
||||
--- ```vim
|
||||
--- set titlestring=%t%(\ %M%)%(\ \(%{expand(\"%:~:h\")}\)%)%a\ -\ Nvim
|
||||
--- set titlestring=%t%(\ %M%)%(\ \(%{expand('%:p:~:h')}\)%)%a\ -\ Nvim
|
||||
--- ```
|
||||
---
|
||||
--- Example:
|
||||
|
||||
Reference in New Issue
Block a user