Browse Source

Enable smooth horizontal scrolling with less option `--shift 1`

Matthew Wang 10 years ago
parent
commit
c95c027f3e
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      cdiff.py

+ 1
- 1
cdiff.py View File

619
     pager_cmd = ['less']
619
     pager_cmd = ['less']
620
     if not os.getenv('LESS'):
620
     if not os.getenv('LESS'):
621
         # Args stolen from git source: github.com/git/git/blob/master/pager.c
621
         # Args stolen from git source: github.com/git/git/blob/master/pager.c
622
-        pager_cmd.extend(['-FRSX'])
622
+        pager_cmd.extend(['-FRSX', '--shift 1'])
623
     pager = subprocess.Popen(
623
     pager = subprocess.Popen(
624
         pager_cmd, stdin=subprocess.PIPE, stdout=sys.stdout)
624
         pager_cmd, stdin=subprocess.PIPE, stdout=sys.stdout)
625
 
625