diff libinterp/parse-tree/oct-parse.yy @ 28150:38a9f6444eb0

maint: merge stable to default.
author John W. Eaton <jwe@octave.org>
date Tue, 10 Mar 2020 07:51:55 -0400
parents a04cb1364af4 026bff6a54d7
children e9126e73748a
line wrap: on
line diff
--- a/libinterp/parse-tree/oct-parse.yy	Mon Mar 09 10:25:21 2020 -0400
+++ b/libinterp/parse-tree/oct-parse.yy	Tue Mar 10 07:51:55 2020 -0400
@@ -4565,9 +4565,8 @@
       curr_line = m_lexer.m_current_input_line;
 
     // Adjust the error column for display because it is 1-based in the
-    // lexer for easier reporting and it has already been advanced to
-    // one past the end of the most recently read token.
-    err_col -= 2;
+    // lexer for easier reporting.
+    err_col--;
 
     if (! curr_line.empty ())
       {