Browse Source

Older less does not have '-K'

Matthew Wang 11 years ago
parent
commit
3ef2ab85ad
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      cdiff.py

+ 1
- 1
cdiff.py View File

497
             width=opts.width)
497
             width=opts.width)
498
 
498
 
499
     # args stolen fron git source: github.com/git/git/blob/master/pager.c
499
     # args stolen fron git source: github.com/git/git/blob/master/pager.c
500
-    pager = subprocess.Popen(['less', '-FRSXK'],
500
+    pager = subprocess.Popen(['less', '-FRSX'],
501
             stdin=subprocess.PIPE, stdout=sys.stdout)
501
             stdin=subprocess.PIPE, stdout=sys.stdout)
502
     for line in color_diff:
502
     for line in color_diff:
503
         pager.stdin.write(line.encode('utf-8'))
503
         pager.stdin.write(line.encode('utf-8'))