aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2015-12-07 11:09:26 +1100
committerNeil <nyamatongwe@gmail.com>2015-12-07 11:09:26 +1100
commit060e01581d9a9b99eb2bd59b09ad8de5b559b2c9 (patch)
treead0c85a8f1c662e5e3a4b8ed9ed18aba3d439361
parent18f8f63fb079b084323def219126836f23f5c2b4 (diff)
downloadscintilla-mirror-060e01581d9a9b99eb2bd59b09ad8de5b559b2c9.tar.gz
Allow any style for IME instead of truncating style to 5 bits.
-rw-r--r--win32/ScintillaWin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index fcf68db9e..4756a89af 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -2631,7 +2631,7 @@ void ScintillaWin::ImeStartComposition() {
if (stylesValid) {
// Since the style creation code has been made platform independent,
// The logfont for the IME is recreated here.
- int styleHere = (pdoc->StyleAt(sel.MainCaret())) & 31;
+ const int styleHere = pdoc->StyleIndexAt(sel.MainCaret());
LOGFONTW lf = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, L""};
int sizeZoomed = vs.styles[styleHere].size + vs.zoomLevel * SC_FONT_SIZE_MULTIPLIER;
if (sizeZoomed <= 2 * SC_FONT_SIZE_MULTIPLIER) // Hangs if sizeZoomed <= 1