if (state->lastchar == 0)
goto bye;
// Pressing backspace with text in the command prompt should just beep
- BEEP();
+ mutt_beep(false);
}
else
{
case OP_EDITOR_BACKWARD_CHAR:
if (state->curpos == 0)
- BEEP();
+ mutt_beep(false);
else
{
while (state->curpos && COMB_CHAR(state->wbuf[state->curpos - 1]))
case OP_EDITOR_FORWARD_CHAR:
if (state->curpos == state->lastchar)
- BEEP();
+ mutt_beep(false);
else
{
state->curpos++;
case OP_EDITOR_BACKWARD_WORD:
if (state->curpos == 0)
- BEEP();
+ mutt_beep(false);
else
{
while (state->curpos && iswspace(state->wbuf[state->curpos - 1]))
case OP_EDITOR_FORWARD_WORD:
if (state->curpos == state->lastchar)
- BEEP();
+ mutt_beep(false);
else
{
while ((state->curpos < state->lastchar) &&
case OP_EDITOR_DOWNCASE_WORD:
if (state->curpos == state->lastchar)
{
- BEEP();
+ mutt_beep(false);
break;
}
while (state->curpos && !iswspace(state->wbuf[state->curpos]))
case OP_EDITOR_DELETE_CHAR:
if (state->curpos == state->lastchar)
- BEEP();
+ mutt_beep(false);
else
{
size_t i = state->curpos;
mutt_mem_realloc(&tempbuf, templen * sizeof(wchar_t));
}
else
- BEEP();
+ mutt_beep(false);
replace_part(state, i, buf);
}
state->tabs = 0;
}
else if (mutt_command_complete(buf, buflen, i, state->tabs) == 0)
- BEEP();
+ mutt_beep(false);
replace_part(state, 0, buf);
}
else if (flags & (MUTT_FILE | MUTT_EFILE))
memcpy(tempbuf, state->wbuf, templen * sizeof(wchar_t));
}
else
- BEEP(); /* let the user know that nothing matched */
+ mutt_beep(false); /* let the user know that nothing matched */
replace_part(state, 0, buf);
}
#ifdef USE_NOTMUCH
mutt_mb_wcstombs(buf, buflen, state->wbuf, state->curpos);
size_t len = strlen(buf);
if (!mutt_nm_query_complete(buf, buflen, len, state->tabs))
- BEEP();
+ mutt_beep(false);
replace_part(state, 0, buf);
}
{
mutt_mb_wcstombs(buf, buflen, state->wbuf, state->curpos);
if (!mutt_nm_tag_complete(buf, buflen, state->tabs))
- BEEP();
+ mutt_beep(false);
replace_part(state, 0, buf);
}
case OP_EDITOR_TRANSPOSE_CHARS:
if (state->lastchar < 2)
- BEEP();
+ mutt_beep(false);
else
{
wchar_t t;
break;
default:
- BEEP();
+ mutt_beep(false);
}
}
else
else
{
mutt_flushinp();
- BEEP();
+ mutt_beep(false);
}
}
}