summaryrefslogtreecommitdiff
path: root/src/Fl_Text_Display.cxx
diff options
context:
space:
mode:
authorYX <yxxinyuan@zju.edu.cn>2021-10-10 17:04:51 +0800
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2021-12-12 17:01:30 +0100
commit95d862fd5afc5e62504c45c213672ad04f3d9928 (patch)
treecbe70e9bfdc484340d1455348e90ccc1895bad86 /src/Fl_Text_Display.cxx
parentfae9f03cc91fc1cf9649fb18a34671c9774ce716 (diff)
Fix IME problem (issue #270)
Diffstat (limited to 'src/Fl_Text_Display.cxx')
-rw-r--r--src/Fl_Text_Display.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx
index 731d7a94e..ac8a291fe 100644
--- a/src/Fl_Text_Display.cxx
+++ b/src/Fl_Text_Display.cxx
@@ -2464,6 +2464,11 @@ void Fl_Text_Display::draw_cursor( int X, int Y ) {
for ( int k = 0; k < nSegs; k++ ) {
fl_line( segs[ k ].x1, segs[ k ].y1, segs[ k ].x2, segs[ k ].y2 );
}
+
+ //fix issue #270
+ if (Fl::focus() == this) {
+ fl_set_spot(textfont(), textsize(), X, bot, text_area.w, text_area.h, window());
+ }
}