summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2016-09-26 19:09:59 -0400
committerAndrew Gallant <jamslam@gmail.com>2016-09-26 19:09:59 -0400
commitd30640344090fc3ffde6d58e0c5a4c928fb00990 (patch)
treef8eec34487f9345b457e1d7717cebae6a662ec41 /src
parentebabe1df6a5922e88aad9024661aaf3a456200b1 (diff)
Fix an off-by-one error with --column.
Fixes #105.
Diffstat (limited to 'src')
-rw-r--r--src/printer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/printer.rs b/src/printer.rs
index 84a72fba..0645b7e4 100644
--- a/src/printer.rs
+++ b/src/printer.rs
@@ -186,7 +186,7 @@ impl<W: Terminal + Send> Printer<W> {
let column =
if self.column {
Some(re.find(&buf[start..end])
- .map(|(s, _)| s + 1).unwrap_or(0) as u64)
+ .map(|(s, _)| s).unwrap_or(0) as u64)
} else {
None
};