summaryrefslogtreecommitdiffstatshomepage
path: root/src/nvim/options.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/options.lua')
-rw-r--r--src/nvim/options.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/options.lua b/src/nvim/options.lua
index 666888abcd..3ab60f0af9 100644
--- a/src/nvim/options.lua
+++ b/src/nvim/options.lua
@@ -9711,7 +9711,7 @@ local options = {
error will be given.
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: >vim
auto BufEnter * let &titlestring = hostname() .. "/" .. expand("%:p")