From ddd39aa21010cab8d579390552e44739c5b85756 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Wed, 21 May 2003 22:30:12 +0000
Subject: [PATCH] Hitting the DEL character while in ugetstr() and the string
 is highlighted, delete the string.

---
 src/uifc/uifc32.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/uifc/uifc32.c b/src/uifc/uifc32.c
index 1f99feab4a..9880b805a4 100644
--- a/src/uifc/uifc32.c
+++ b/src/uifc/uifc32.c
@@ -1256,7 +1256,7 @@ static int ugetstr(char *outstr, int max, long mode)
 #endif
 		f=inkey(0);
 		gotoxy(wherex()-i,y);
-		if(f == CR || f >= 0xff)
+		if(f == CR || (f >= 0xff && f != KEY_DC))
 		{
 			cputs(outstr);
 		}
-- 
GitLab