diff options
author | Andrew Gallant <jamslam@gmail.com> | 2016-09-26 19:09:59 -0400 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2016-09-26 19:09:59 -0400 |
commit | d30640344090fc3ffde6d58e0c5a4c928fb00990 (patch) | |
tree | f8eec34487f9345b457e1d7717cebae6a662ec41 /src | |
parent | ebabe1df6a5922e88aad9024661aaf3a456200b1 (diff) |
Fix an off-by-one error with --column.
Fixes #105.
Diffstat (limited to 'src')
-rw-r--r-- | src/printer.rs | 2 |
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 }; |