ymattw / ydiff

View colored, incremental diff in workspace or from stdin with side by side and auto pager support
Other
873 stars 62 forks source link

If LESS environment variable is defined, cdiff displays raw colour codes #67

Closed Jehops closed 7 years ago

Jehops commented 7 years ago

LESS="anything" cdiff will cause cdiff to display raw colour codes instead of colours. This is with cdiff-1.0.3 installed via the FreeBSD package.

ymattw commented 7 years ago

If you set LESS environment, cdiff considers you want to control the behavior of less yourself completely. In your case you are missing the -R option for less.

FYI cdiff use this as default options for less: -FRSX --shift 1.