diff options
Diffstat (limited to 'Src/hist.c')
-rw-r--r-- | Src/hist.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/hist.c b/Src/hist.c index 636f46411..aeb6edda5 100644 --- a/Src/hist.c +++ b/Src/hist.c @@ -1355,7 +1355,8 @@ ihwend(void) (chwordlen += 32) * sizeof(short)); } - if (hwgetword > -1) { + if (hwgetword > -1 && + (inbufflags & INP_ALIAS) && !(inbufflags & INP_HIST)) { /* We want to reuse the current word position */ chwordpos = hwgetword; /* Start from where previous word ended, if possible */ |