From 0e4eab524c385c6b0696983ba3c5dc2048e15419 Mon Sep 17 00:00:00 2001 From: zhaogang Date: Fri, 3 Feb 2023 14:37:42 +0800 Subject: [PATCH] fix:fix show hello when open nvim in topleft --- lua/telekasten.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/telekasten.lua b/lua/telekasten.lua index ef9371a..292764b 100644 --- a/lua/telekasten.lua +++ b/lua/telekasten.lua @@ -2999,7 +2999,7 @@ local function Setup(cfg) -- M.Cfg.rg_pcre = os.execute("echo 'hello' | rg --pcr2 hello &> /dev/null") or false M.Cfg.rg_pcre = false - local has_pcre = os.execute("echo 'hello' | rg --pcre2 hello &> /dev/null") + local has_pcre = os.execute("echo 'hello' | rg --pcre2 hello > /dev/null 2>&1") if has_pcre == 0 then M.Cfg.rg_pcre = true end