Skip to content

Commit

Permalink
Fix top level comment after end dot, re issue #637
Browse files Browse the repository at this point in the history
  • Loading branch information
infradig committed Nov 27, 2024
1 parent 5a539ad commit ee59d47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/history.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ char *history_readline_eol(prolog *pl, const char *prompt, char eol)
int ch = get_char_utf8(&s);
char *end_ptr = cmd + strlen(cmd) - (strlen(cmd) ? 1 : 0);

while ((isspace(*end_ptr) || (*end_ptr == '%')) && (end_ptr != cmd)) {
while (((*end_ptr != '.') || (*end_ptr == '%')) && (end_ptr != cmd)) {
*end_ptr = '\0';
end_ptr--;
}
Expand Down

0 comments on commit ee59d47

Please sign in to comment.