From a36965492bd53b77859a8e5df0a482ea3ec9f9dd Mon Sep 17 00:00:00 2001 From: johnsonj Date: Tue, 8 Dec 2015 10:08:05 +1100 Subject: Cancel IME composition for read-only documents. --- gtk/ScintillaGTK.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index 9977f0db0..0d8943826 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -2434,6 +2434,11 @@ 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()) { + gtk_im_context_reset(im_context); + return; + } + view.imeCaretBlockOverride = false; // If backspace. if (pdoc->TentativeActive()) { -- cgit v1.2.3