diff options
author | Marius <mariausol@gmail.com> | 2012-06-05 10:40:16 +0300 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2012-06-05 10:40:16 +0300 |
commit | 0d22bc1c0589c61e35cf9746a8d4d0c4ac2ea8da (patch) | |
tree | 2ec0f7f663e45fd3c4539dfb54eb6e640d472bd6 /scripts/context/lua/mtx-grep.lua | |
parent | ad5540007a2ac6504a47289ace109a76ec759a7e (diff) | |
download | context-0d22bc1c0589c61e35cf9746a8d4d0c4ac2ea8da.tar.gz |
beta 2012.06.05 09:16
Diffstat (limited to 'scripts/context/lua/mtx-grep.lua')
-rw-r--r-- | scripts/context/lua/mtx-grep.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/context/lua/mtx-grep.lua b/scripts/context/lua/mtx-grep.lua index 3cbc1421a..98a97279d 100644 --- a/scripts/context/lua/mtx-grep.lua +++ b/scripts/context/lua/mtx-grep.lua @@ -60,7 +60,7 @@ function scripts.grep.find(pattern, files, offset) if m > 0 then nofmatches = nofmatches + m nofmatchedfiles = nofmatchedfiles + 1 - write_nl(format("%s: %s",name,m)) + write_nl(format("%5i %s",m,name)) io.flush() end else @@ -127,7 +127,7 @@ function scripts.grep.find(pattern, files, offset) if count and m > 0 then nofmatches = nofmatches + m nofmatchedfiles = nofmatchedfiles + 1 - write_nl(format("%s: %s",name,m)) + write_nl(format("%5i %s",m,name)) io.flush() end end |