浏览代码

Older less does not have '-K'

Matthew Wang 12 年前
父节点
当前提交
3ef2ab85ad
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      cdiff.py

+ 1
- 1
cdiff.py 查看文件

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'))