Mercurial > vim
comparison src/edit.c @ 12293:1ff5e5dfa9b0 v8.0.1026
patch 8.0.1026: GTK on-the-spot input has problems
commit https://github.com/vim/vim/commit/5c6dbcb03fa552d7b0e61c8fcf425147eb6bf7d5
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 30 22:00:20 2017 +0200
patch 8.0.1026: GTK on-the-spot input has problems
Problem: GTK on-the-spot input has problems. (Gerd Wachsmuth)
Solution: Support over-the-spot. (Yukihiro Nakadaira, Ketn Takata, closes
#1215)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 30 Aug 2017 22:15:04 +0200 |
parents | 60cf03e59402 |
children | 4dba3e4f3b01 |
comparison
equal
deleted
inserted
replaced
12292:eddea00bc625 | 12293:1ff5e5dfa9b0 |
---|---|
9681 if (oneleft() == OK) | 9681 if (oneleft() == OK) |
9682 { | 9682 { |
9683 #if defined(FEAT_XIM) && defined(FEAT_GUI_GTK) | 9683 #if defined(FEAT_XIM) && defined(FEAT_GUI_GTK) |
9684 /* Only call start_arrow() when not busy with preediting, it will | 9684 /* Only call start_arrow() when not busy with preediting, it will |
9685 * break undo. K_LEFT is inserted in im_correct_cursor(). */ | 9685 * break undo. K_LEFT is inserted in im_correct_cursor(). */ |
9686 if (!im_is_preediting()) | 9686 if (p_imst == IM_OVER_THE_SPOT || !im_is_preediting()) |
9687 #endif | 9687 #endif |
9688 { | 9688 { |
9689 start_arrow_with_change(&tpos, end_change); | 9689 start_arrow_with_change(&tpos, end_change); |
9690 if (!end_change) | 9690 if (!end_change) |
9691 AppendCharToRedobuff(K_LEFT); | 9691 AppendCharToRedobuff(K_LEFT); |