diff options
Diffstat (limited to 'lib/libedit/hist.c')
| -rw-r--r-- | lib/libedit/hist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libedit/hist.c b/lib/libedit/hist.c index 394df63e9d3e..27dacd1925b1 100644 --- a/lib/libedit/hist.c +++ b/lib/libedit/hist.c @@ -101,7 +101,7 @@ hist_get(el) if (el->el_history.eventno == 0) { /* if really the current line */ (void) strncpy(el->el_line.buffer, el->el_history.buf, EL_BUFSIZ); - el->el_line.lastchar = el->el_line.buffer + + el->el_line.lastchar = el->el_line.buffer + (el->el_history.last - el->el_history.buf); #ifdef KSHVI |
