remove code preventing firing callbacks in the history buffer

This commit is contained in:
Alex Coyte
2016-09-01 09:55:53 +10:00
committed by Matthew Barr
parent c3b5efefb6
commit efa3299774
3 changed files with 5 additions and 40 deletions

View File

@@ -405,9 +405,7 @@ char runSheng(const struct sheng *sh, struct mq *q, s64a b_end,
const u8 * scanned = cur_buf;
char rv;
/* if we're in nomatch mode or if we're scanning history buffer */
if (mode == NO_MATCHES ||
(cur_start < 0 && mode == CALLBACK_OUTPUT)) {
if (mode == NO_MATCHES) {
runShengNm(sh, q->cb, q->context, q->offset,
&cached_accept_state, &cached_accept_id, cur_buf,
cur_buf + cur_start, cur_buf + cur_end, can_die,