I have a different patch to fix that, but it works differently. It's in my syrinx-svn-trunk-guile-1.8 branch: https://github.com/KarlHegbloom/texmacs/commit/5d96fe69ea98e4c41d8
On Sat, Sep 2, 2017, 07:51 Zhaocong Jia <[email protected]> wrote: > See the bug report here: > https://savannah.gnu.org/bugs/?47338 > > This bug happens when using "fcitx" input method > (or other input method I think), the "preeditString" > get disappear. > > This happens for 1.99.5 with Qt5 on Linux (there's > no bug for the Qt4 pre-compiled binary). After some > bisecting, I find this bug exists in 2016-05-17, I can't > compile earlier versions to give a precise commit. > I think around that time, Qt5 support is being added, > so I presume this bug is related with Qt5. > > The following patch "fix" this bug. It was supposed to > process and show the "preeditString", now I disabled that. > > I hope this bug get resolved soon, because it affects almost > all CJK users. > > diff --git a/src/Plugins/Qt/QTMWidget.cpp b/src/Plugins/Qt/QTMWidget.cpp > index d14b514ac..060651e89 100644 > --- a/src/Plugins/Qt/QTMWidget.cpp > +++ b/src/Plugins/Qt/QTMWidget.cpp > @@ -559,8 +559,8 @@ QTMWidget::inputMethodEvent (QInputMethodEvent* event) > { > > r = r * as_string (pos) * ":" * from_qstring (preedit_string); > } > - if (!is_nil (tmwid)) > - the_gui->process_keypress (tm_widget(), r, texmacs_time()); > + //if (!is_nil (tmwid)) > + //the_gui->process_keypress (tm_widget(), r, texmacs_time()); > event->accept(); > } > > Best wishes, > Jia > > _______________________________________________ > Texmacs-dev mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/texmacs-dev > -- [email protected]
_______________________________________________ Texmacs-dev mailing list [email protected] https://lists.gnu.org/mailman/listinfo/texmacs-dev
