comparison src/undo.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 e971ef6c0dee
children 351cf7c67bbe
comparison
equal deleted inserted replaced
12292:eddea00bc625 12293:1ff5e5dfa9b0
2982 { 2982 {
2983 /* Skip it when already synced or syncing is disabled. */ 2983 /* Skip it when already synced or syncing is disabled. */
2984 if (curbuf->b_u_synced || (!force && no_u_sync > 0)) 2984 if (curbuf->b_u_synced || (!force && no_u_sync > 0))
2985 return; 2985 return;
2986 #if defined(FEAT_XIM) && defined(FEAT_GUI_GTK) 2986 #if defined(FEAT_XIM) && defined(FEAT_GUI_GTK)
2987 if (im_is_preediting()) 2987 if (p_imst == IM_ON_THE_SPOT && im_is_preediting())
2988 return; /* XIM is busy, don't break an undo sequence */ 2988 return; /* XIM is busy, don't break an undo sequence */
2989 #endif 2989 #endif
2990 if (get_undolevel() < 0) 2990 if (get_undolevel() < 0)
2991 curbuf->b_u_synced = TRUE; /* no entries, nothing to do */ 2991 curbuf->b_u_synced = TRUE; /* no entries, nothing to do */
2992 else 2992 else