diff --git a/src/history.c b/src/history.c index 3442eec2..a940c80c 100644 --- a/src/history.c +++ b/src/history.c @@ -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--; }