aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk
diff options
context:
space:
mode:
authorjohnsonj <devnull@localhost>2015-12-14 15:03:51 +1100
committerjohnsonj <devnull@localhost>2015-12-14 15:03:51 +1100
commita2dd3d187967cd838747329dc37382796b01ad4f (patch)
treeb2acc097393603e33667266bb1b730ef1aa32528 /gtk
parenteeb150883f74d5908872d71087814e73f4dd640e (diff)
downloadscintilla-mirror-a2dd3d187967cd838747329dc37382796b01ad4f.tar.gz
Block IME when some selected text is protected.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/ScintillaGTK.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx
index 19576ce9e..eaf2e26f8 100644
--- a/gtk/ScintillaGTK.cxx
+++ b/gtk/ScintillaGTK.cxx
@@ -2434,7 +2434,7 @@ void ScintillaGTK::PreeditChangedInlineThis() {
// Copy & paste by johnsonj with a lot of helps of Neil
// Great thanks for my foreruners, jiniya and BLUEnLIVE
try {
- if (pdoc->IsReadOnly()) {
+ if (pdoc->IsReadOnly() || SelectionContainsProtected()) {
gtk_im_context_reset(im_context);
return;
}