From 1e02a0a9cd20feddf23b5fac563233ab144ac437 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Sat, 10 Oct 2020 20:37:20 +0200 Subject: [PATCH] fix: Clason is a miracle worker (#172) Adds the `-R` flag to `less` for the other code path as well, which is called for `grep` and `workspace_symbols`. --- lua/telescope/previewers.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/telescope/previewers.lua b/lua/telescope/previewers.lua index 67ce831..d69f73f 100644 --- a/lua/telescope/previewers.lua +++ b/lua/telescope/previewers.lua @@ -30,7 +30,7 @@ local bat_maker = function(filename, lnum, start, finish) if has_less then if start then - table.insert(command, {"--pager", string.format("less -S +%s", start)}) + table.insert(command, {"--pager", string.format("less -RS +%s", start)}) else table.insert(command, {"--pager", "less -RS"}) end