summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-09-12 15:41:19 +0200
committerAndreas Rumpf <rumpf_a@web.de>2016-09-12 23:04:19 +0200
commit568de6013f3cb8ffb01438b860a7243b498f5059 (patch)
tree1f6ea3174d8939e4bd671227ecde7d8c1697302a
parent259daf98cf8bdb89e537014b56f6ad38b99956e5 (diff)
downloadNim-568de6013f3cb8ffb01438b860a7243b498f5059.tar.gz
fixes #4751
-rw-r--r--tools/nimgrep.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/nimgrep.nim b/tools/nimgrep.nim
index e93168847..a1f564fbc 100644
--- a/tools/nimgrep.nim
+++ b/tools/nimgrep.nim
@@ -11,7 +11,7 @@ import
   os, strutils, parseopt, pegs, re, terminal
 
 const
-  Version = "1.0"
+  Version = "1.1"
   Usage = "nimgrep - Nim Grep Utility Version " & Version & """
 
   (c) 2012 Andreas Rumpf
@@ -161,7 +161,7 @@ proc processFile(filename: string) =
       t = findBounds(buffer, pegp, matches, i)
     else:
       t = findBounds(buffer, rep, matches, i)
-    if t.first <= 0: break
+    if t.first < 0: break
     inc(line, countLines(buffer, i, t.first-1))
 
     var wholeMatch = buffer.substr(t.first, t.last)
/akspecs/ranger/blame/ranger.py?h=v1.7.0-emacs&id=921fa593d056ad791a48570196664ca29f57a8d4'>^
06848dc3 ^
240394a4 ^
f027adc0 ^
08f08fb9 ^
654af129 ^
08f08fb9 ^
d8084b41 ^

99400080 ^
08f08fb9 ^

654af129 ^

0da832e8 ^
d8084b41 ^
cba63cf3 ^
b4250dbc ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40