Skip to content
Snippets Groups Projects
Commit 5511d226 authored by deuce's avatar deuce
Browse files

Save updates to edited string when using K_MOUSEEXIT

(Previously was returning the unedited string)
parent aa3bacc3
No related branches found
No related tags found
No related merge requests found
...@@ -1837,7 +1837,8 @@ int ugetstr(int left, int top, int width, char *outstr, int max, long mode, int ...@@ -1837,7 +1837,8 @@ int ugetstr(int left, int top, int width, char *outstr, int max, long mode, int
if(lastkey) if(lastkey)
*lastkey=CIO_KEY_MOUSE; *lastkey=CIO_KEY_MOUSE;
ungetmouse(&mevnt); ungetmouse(&mevnt);
return(j); ch=CR;
continue;
} }
if(mevnt.starty == top if(mevnt.starty == top
&& mevnt.startx>=left && mevnt.startx>=left
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment