From: Mark Wooding Date: Fri, 2 Aug 2019 19:30:44 +0000 (+0100) Subject: dot/lesskey: Use `-r' instead of `-R'. X-Git-Url: https://git.distorted.org.uk/~mdw/profile/commitdiff_plain/b59e8644263f6e5bd31778ffada9be6e0a539a92 dot/lesskey: Use `-r' instead of `-R'. This seems to handle some kinds of colourized output better. In particular, GNU `diff' gets mangled by `less -R': only the first line in a coloured group ends up actually being coloured. On the other hand, `less -r' copes with this properly, maybe because it's actually looking at the control codes rather than feeding them through without thinking and then accidentally clobbering their effects. I don't know why my `less' settings have used `-R', but they have for as long as I've maintained my profile in Git. Oh, well. --- diff --git a/dot/lesskey b/dot/lesskey index 3c96230..42ef238 100644 --- a/dot/lesskey +++ b/dot/lesskey @@ -9,5 +9,5 @@ #line-edit #env -LESS = -iqgRh1j.3FSX +LESS = -iqgrh1j.3FSX LESSOPEN = |lesspipe.sh %s