[dev] [vis][PATCH] Make the '.' Filerange work on one line

From: Silvan Jegen <s.jegen_AT_gmail.com>
Date: Tue, 5 May 2015 18:23:53 +0200

Signed-off-by: Silvan Jegen <s.jegen_AT_gmail.com>
---
 vis.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/vis.c b/vis.c
index 051f256..cf157f7 100644
--- a/vis.c
+++ b/vis.c
_AT_@ -1714,8 +1714,10 @@ static Filerange parse_range(char **cmd) {
 		break;
 	default:
 		r.start = parse_pos(cmd);
-		if (**cmd != ',')
+		if (**cmd != ',') {
+			r.end = text_line_finish(txt, r.start);
 			return r;
+		}
 		(*cmd)++;
 		r.end = parse_pos(cmd);
 		break;
-- 
2.3.7
Received on Tue May 05 2015 - 18:23:53 CEST

This archive was generated by hypermail 2.3.0 : Tue May 05 2015 - 18:36:09 CEST