diff options
| author | Neil <nyamatongwe@gmail.com> | 2014-08-11 14:20:07 +1000 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2014-08-11 14:20:07 +1000 | 
| commit | 055536deee55e58ff920f47413139b851ee1aa7a (patch) | |
| tree | e62437506c8dca3407a3712d1096bd7776b1ea40 | |
| parent | bef973324a655393488c8ed68a0702d004e08ff3 (diff) | |
| download | scintilla-mirror-055536deee55e58ff920f47413139b851ee1aa7a.tar.gz | |
Handle empty pre-edit string.
From johnsonj.
| -rw-r--r-- | gtk/ScintillaGTK.cxx | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index 9b0622a9b..926457ba3 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -2402,7 +2402,7 @@ void ScintillaGTK::PreeditChangedThis() {  			PreEditString utfval(im_context); -			if (strlen(utfval.str) >  maxLenInputIME * 3) { +			if ((strlen(utfval.str) == 0) || strlen(utfval.str) > maxLenInputIME * 3) {  				return; // Do not allow over 200 chars.  			}  | 
