diff options
Diffstat (limited to 'Src/hist.c')
-rw-r--r-- | Src/hist.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Src/hist.c b/Src/hist.c index 5b32748b5..4d803c0bd 100644 --- a/Src/hist.c +++ b/Src/hist.c @@ -1063,11 +1063,12 @@ hend(Eprog prog) } #endif /* get rid of pesky \n which we've already nulled out */ - if (chwordpos > 1 && !chline[chwords[chwordpos-2]]) + if (chwordpos > 1 && !chline[chwords[chwordpos-2]]) { chwordpos -= 2; - /* strip superfluous blanks, if desired */ - if (isset(HISTREDUCEBLANKS)) - histreduceblanks(); + /* strip superfluous blanks, if desired */ + if (isset(HISTREDUCEBLANKS)) + histreduceblanks(); + } if ((isset(HISTIGNOREDUPS) || isset(HISTIGNOREALLDUPS)) && he && histstrcmp(chline, he->text) == 0) { /* This history entry compares the same as the previous. |