Commit 9c7940b5 authored by Rishabh Dave's avatar Rishabh Dave Committed by Benno Schulenberg
Browse files

utils: accept mistypings and common separators between line and column

It is easy to type beside the comma key and hit instead "m" or ".", so
accept also these as a separator between line and column number.  And
when being generous anyway, also accept space, slash and semicolon.

This fulfills https://savannah.gnu.org/bugs/?48305

.
Signed-off-by: default avatarRishabh Dave <rishabhddave@gmail.com>
No related merge requests found
Showing with 6 additions and 1 deletion
+6 -1
......@@ -83,7 +83,12 @@ bool parse_line_column(const char *str, ssize_t *line, ssize_t *column)
{
bool retval;
char *firstpart;
const char *comma = strchr(str, ',');
const char *comma;
while (*str == ' ')
str++;
comma = strpbrk(str, "m,. /;");
if (comma == NULL)
return parse_num(str, line);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment