Commits

ZyX_I committed 1f93d76

Fixed value of `csnum' key

  • Participants
  • Parent commits 5066b53

Comments (0)

Files changed (1)

     r=get_revlist(repo, startrev)
     vim.eval('extend(a:repo, {"tip_hex": "'+tipcs.hex()+'", '+
                              '"work_hex": "'+repo['.'].hex()+'", '+
-                             '"csnum": "'+str(len(repo))+'"})')
+                             '"csnum": "'+str(len(repo)+1)+'"})')
     vim.eval('extend(d, {"css": '+utf_dumps(r)+', '+
                         '"startrev": '+str(startrev)+'})')
 
                                 'work_hex': repo['.'].hex(),
                                  'tip_hex': repo['tip'].hex(),
                                   'cslist': [],
-                                   'csnum': len(repo),
+                                   'csnum': len(repo)+1,
                                    'local': 1 if repo.local() else 0,
                                     })+')')