From 5511d226592006aa75da58ef707598d517ea719c Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Sat, 4 Jun 2005 21:12:00 +0000
Subject: [PATCH] Save updates to edited string when using K_MOUSEEXIT
 (Previously was returning the unedited string)

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

diff --git a/src/uifc/uifc32.c b/src/uifc/uifc32.c
index a5b82cc002..addbe41757 100644
--- a/src/uifc/uifc32.c
+++ b/src/uifc/uifc32.c
@@ -1837,7 +1837,8 @@ int ugetstr(int left, int top, int width, char *outstr, int max, long mode, int
 						if(lastkey)
 							*lastkey=CIO_KEY_MOUSE;
 						ungetmouse(&mevnt);
-						return(j);
+						ch=CR;
+						continue;
 					}
 					if(mevnt.starty == top
 							&& mevnt.startx>=left
-- 
GitLab