Skip to content

Commit 78a8e13

Browse files
committed
Issue: hitting backspace (while on last char) in search-mode did not do
anything, while hitting from inside the word deleted characters from wrong side (deleted chars on right, but should delete chars on left) solved the issue by adding conditional when (curpos == lastchar) in (case OP_EDITOR_DELETE_CHAR) and redrawing
1 parent 08767aa commit 78a8e13

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

enter.c

+11
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,17 @@ int mutt_enter_string (unsigned char *buf, size_t buflen, int y, int x,
307307
if (!pass)
308308
redraw = M_REDRAW_EOL;
309309
}
310+
else if (curpos == lastchar)
311+
{
312+
if (lastchar > begin)
313+
{
314+
buf[lastchar] = '\0';
315+
curpos--;
316+
lastchar--;
317+
}
318+
if (!pass)
319+
redraw = M_REDRAW_EOL;
320+
}
310321
else
311322
BEEP ();
312323
break;

0 commit comments

Comments
 (0)