From 7aa7dd17504eb54ef455de8a8aa5db05bcd938fb Mon Sep 17 00:00:00 2001 From: urosm Date: Tue, 20 Aug 2024 03:57:29 +0200 Subject: [PATCH] .config/vis: fix set_title --- .config/vis/visrc.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/vis/visrc.lua b/.config/vis/visrc.lua index fa35db0..240eb8a 100644 --- a/.config/vis/visrc.lua +++ b/.config/vis/visrc.lua @@ -151,11 +151,11 @@ end) local modified = false local function set_title(title) - vis:command('!printf "\\e];vis: '..title..(modified and '[+]' or '')..'\\e"') + os.execute('printf "\\e];vis: '..title..(modified and '[+]' or '')..'\\e"') end e.subscribe(e.WIN_OPEN, function(win) - set_title(win.file.name or "[No Name]") + set_title(win.file.name or '[No Name]') end) e.subscribe(e.FILE_SAVE_POST, function(file) @@ -166,6 +166,6 @@ end) e.subscribe(e.WIN_STATUS, function(win) if not modified and win.file.modified then modified = true - set_title(win.file.name) + set_title(win.file.name or '[No Name]') end end)