Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

grep: add 1 to line number display

Python starts at 0 for an enumeration but humans generally starts at 1
for line numbering.

Changeset b18a5c913106

Parent e93c0e3b182d

by André Sintzoff

Changes to one file · Browse files at b18a5c913106 Showing diff from parent e93c0e3b182d Diff from another changeset...

 
296
297
298
299
 
300
301
302
 
296
297
298
 
299
300
301
302
@@ -296,7 +296,7 @@
  pos = m.end()   if pos:   hu.write(line[pos:]) - row = [wfile, i, rev, None, hu.getdata()[0]] + row = [wfile, i + 1, rev, None, hu.getdata()[0]]   self.emit(SIGNAL('matchedRow'), row)   if self.once:   break