summaryrefslogtreecommitdiff
path: root/src/mbyte.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/mbyte.c
parent2d694603c7081cf359db6b9c108c235f909f1aab (diff)
downloadvim-git-39fecab939266f92b320c710d3b5b18ec61d8731.tar.gz
updated for version 7.0-067v7.0.067
Diffstat (limited to 'src/mbyte.c')
-rw-r--r--src/mbyte.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mbyte.c b/src/mbyte.c
index bcfca8266..92f00e093 100644
--- a/src/mbyte.c
+++ b/src/mbyte.c
@@ -3514,6 +3514,11 @@ im_delete_preedit(void)
add_to_input_buf(delkey, (int)sizeof(delkey));
}
+/*
+ * Move the cursor left by "num_move_back" characters.
+ * Note that ins_left() checks im_is_preediting() to avoid breaking undo for
+ * these K_LEFT keys.
+ */
static void
im_correct_cursor(int num_move_back)
{
@@ -3741,8 +3746,7 @@ im_preedit_changed_cb(GtkIMContext *context, gpointer data)
}
else if (cursor_index == 0 && preedit_string[0] == '\0')
{
- if (preedit_start_col == MAXCOL)
- xim_has_preediting = FALSE;
+ xim_has_preediting = FALSE;
/* If at the start position (after typing backspace)
* preedit_start_col must be reset. */