mirror of
https://github.com/neovim/neovim.git
synced 2026-07-16 06:10:39 +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:
@@ -3433,7 +3433,7 @@ void maketitle(void)
|
||||
}
|
||||
} else {
|
||||
// Format: "fname + (path) (1 of 2) - Nvim".
|
||||
char *default_titlestring = "%t%( %M%)%( (%{expand(\"%:~:h\")})%)%a - Nvim";
|
||||
char *default_titlestring = "%t%( %M%)%( (%{expand('%:p:~:h')})%)%a - Nvim";
|
||||
build_stl_str_hl(curwin, buf, sizeof(buf), default_titlestring,
|
||||
kOptTitlestring, 0, 0, maxlen, NULL, NULL, NULL, NULL);
|
||||
title_str = buf;
|
||||
|
||||
Reference in New Issue
Block a user