From 43595515ebb252361fec1b761288f7c86fd6bca8 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 10 Feb 2015 15:40:37 +0100 Subject: [PATCH] Fix off-by-one mistake for error reporting refs #8133 --- lib/cli/consolecommand.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/cli/consolecommand.cpp b/lib/cli/consolecommand.cpp index d8249ff2f..2e080929c 100644 --- a/lib/cli/consolecommand.cpp +++ b/lib/cli/consolecommand.cpp @@ -138,11 +138,9 @@ incomplete: for (int i = 1; i <= ulines.size(); i++) { int start, len; - if (i == di.FirstLine) { + if (i == di.FirstLine) start = di.FirstColumn; - if (start > 0) - start--; - } else + else start = 0; if (i == di.LastLine) -- 2.40.0