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,7 +619,7 @@ def markup_to_pager(stream, opts):
619 619
     pager_cmd = ['less']
620 620
     if not os.getenv('LESS'):
621 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 623
     pager = subprocess.Popen(
624 624
         pager_cmd, stdin=subprocess.PIPE, stdout=sys.stdout)
625 625