diff options
| author | Christian Clason <christian.clason@uni-due.de> | 2020-10-10 20:37:20 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-10 14:37:20 -0400 |
| commit | 1e02a0a9cd20feddf23b5fac563233ab144ac437 (patch) | |
| tree | b81e8072a040d1db8c71555699ab864d5e177dae /lua/telescope/previewers.lua | |
| parent | 6267ead134032b3746488d804b0e09a740d54ab6 (diff) | |
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`.
Diffstat (limited to 'lua/telescope/previewers.lua')
| -rw-r--r-- | lua/telescope/previewers.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
