summaryrefslogtreecommitdiff
path: root/src/edit.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-08-29 14:07:36 +0000
committerBram Moolenaar <Bram@vim.org>2006-08-29 14:07:36 +0000
commit39fecab939266f92b320c710d3b5b18ec61d8731 (patch)
treeb4a00569ab6c9132b67ec01657f97c4703a85f19 /src/edit.c
parent2d694603c7081cf359db6b9c108c235f909f1aab (diff)
downloadvim-git-39fecab939266f92b320c710d3b5b18ec61d8731.tar.gz
updated for version 7.0-067v7.0.067
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/edit.c b/src/edit.c
index fb347b85d..9caca851b 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -8597,7 +8597,12 @@ ins_left()
tpos = curwin->w_cursor;
if (oneleft() == OK)
{
- start_arrow(&tpos);
+#if defined(FEAT_XIM) && defined(FEAT_GUI_GTK)
+ /* Only call start_arrow() when not busy with preediting, it will
+ * break undo. K_LEFT is inserted in im_correct_cursor(). */
+ if (!im_is_preediting())
+#endif
+ start_arrow(&tpos);
#ifdef FEAT_RIGHTLEFT
/* If exit reversed string, position is fixed */
if (revins_scol != -1 && (int)curwin->w_cursor.col >= revins_scol)