|
Karsten Hopp |
642735 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
642735 |
Subject: Patch 7.0.067
|
|
Karsten Hopp |
642735 |
Fcc: outbox
|
|
Karsten Hopp |
642735 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
642735 |
Mime-Version: 1.0
|
|
Karsten Hopp |
642735 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
642735 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
642735 |
------------
|
|
Karsten Hopp |
642735 |
|
|
Karsten Hopp |
642735 |
Patch 7.0.067
|
|
Karsten Hopp |
642735 |
Problem: Undo doesn't always work properly when using "scim" input method.
|
|
Karsten Hopp |
642735 |
Undo is split up when using preediting.
|
|
Karsten Hopp |
642735 |
Solution: Reset xim_has_preediting also when preedit_start_col is not
|
|
Karsten Hopp |
642735 |
MAXCOL. Don't split undo when <Left> is used while preediting.
|
|
Karsten Hopp |
642735 |
(Yukihiro Nakadaira)
|
|
Karsten Hopp |
642735 |
Files: src/edit.c, src/mbyte.c
|
|
Karsten Hopp |
642735 |
|
|
Karsten Hopp |
642735 |
|
|
Karsten Hopp |
642735 |
*** ../vim-7.0.066/src/edit.c Tue Aug 22 19:58:22 2006
|
|
Karsten Hopp |
642735 |
--- src/edit.c Tue Aug 29 14:57:46 2006
|
|
Karsten Hopp |
642735 |
***************
|
|
Karsten Hopp |
642735 |
*** 8597,8603 ****
|
|
Karsten Hopp |
642735 |
tpos = curwin->w_cursor;
|
|
Karsten Hopp |
642735 |
if (oneleft() == OK)
|
|
Karsten Hopp |
642735 |
{
|
|
Karsten Hopp |
642735 |
! start_arrow(&tpos);
|
|
Karsten Hopp |
642735 |
#ifdef FEAT_RIGHTLEFT
|
|
Karsten Hopp |
642735 |
/* If exit reversed string, position is fixed */
|
|
Karsten Hopp |
642735 |
if (revins_scol != -1 && (int)curwin->w_cursor.col >= revins_scol)
|
|
Karsten Hopp |
642735 |
--- 8597,8608 ----
|
|
Karsten Hopp |
642735 |
tpos = curwin->w_cursor;
|
|
Karsten Hopp |
642735 |
if (oneleft() == OK)
|
|
Karsten Hopp |
642735 |
{
|
|
Karsten Hopp |
642735 |
! #if defined(FEAT_XIM) && defined(FEAT_GUI_GTK)
|
|
Karsten Hopp |
642735 |
! /* Only call start_arrow() when not busy with preediting, it will
|
|
Karsten Hopp |
642735 |
! * break undo. K_LEFT is inserted in im_correct_cursor(). */
|
|
Karsten Hopp |
642735 |
! if (!im_is_preediting())
|
|
Karsten Hopp |
642735 |
! #endif
|
|
Karsten Hopp |
642735 |
! start_arrow(&tpos);
|
|
Karsten Hopp |
642735 |
#ifdef FEAT_RIGHTLEFT
|
|
Karsten Hopp |
642735 |
/* If exit reversed string, position is fixed */
|
|
Karsten Hopp |
642735 |
if (revins_scol != -1 && (int)curwin->w_cursor.col >= revins_scol)
|
|
Karsten Hopp |
642735 |
*** ../vim-7.0.066/src/mbyte.c Wed Aug 16 18:05:36 2006
|
|
Karsten Hopp |
642735 |
--- src/mbyte.c Tue Aug 29 14:41:45 2006
|
|
Karsten Hopp |
642735 |
***************
|
|
Karsten Hopp |
642735 |
*** 3514,3519 ****
|
|
Karsten Hopp |
642735 |
--- 3514,3524 ----
|
|
Karsten Hopp |
642735 |
add_to_input_buf(delkey, (int)sizeof(delkey));
|
|
Karsten Hopp |
642735 |
}
|
|
Karsten Hopp |
642735 |
|
|
Karsten Hopp |
642735 |
+ /*
|
|
Karsten Hopp |
642735 |
+ * Move the cursor left by "num_move_back" characters.
|
|
Karsten Hopp |
642735 |
+ * Note that ins_left() checks im_is_preediting() to avoid breaking undo for
|
|
Karsten Hopp |
642735 |
+ * these K_LEFT keys.
|
|
Karsten Hopp |
642735 |
+ */
|
|
Karsten Hopp |
642735 |
static void
|
|
Karsten Hopp |
642735 |
im_correct_cursor(int num_move_back)
|
|
Karsten Hopp |
642735 |
{
|
|
Karsten Hopp |
642735 |
***************
|
|
Karsten Hopp |
642735 |
*** 3741,3748 ****
|
|
Karsten Hopp |
642735 |
}
|
|
Karsten Hopp |
642735 |
else if (cursor_index == 0 && preedit_string[0] == '\0')
|
|
Karsten Hopp |
642735 |
{
|
|
Karsten Hopp |
642735 |
! if (preedit_start_col == MAXCOL)
|
|
Karsten Hopp |
642735 |
! xim_has_preediting = FALSE;
|
|
Karsten Hopp |
642735 |
|
|
Karsten Hopp |
642735 |
/* If at the start position (after typing backspace)
|
|
Karsten Hopp |
642735 |
* preedit_start_col must be reset. */
|
|
Karsten Hopp |
642735 |
--- 3746,3752 ----
|
|
Karsten Hopp |
642735 |
}
|
|
Karsten Hopp |
642735 |
else if (cursor_index == 0 && preedit_string[0] == '\0')
|
|
Karsten Hopp |
642735 |
{
|
|
Karsten Hopp |
642735 |
! xim_has_preediting = FALSE;
|
|
Karsten Hopp |
642735 |
|
|
Karsten Hopp |
642735 |
/* If at the start position (after typing backspace)
|
|
Karsten Hopp |
642735 |
* preedit_start_col must be reset. */
|
|
Karsten Hopp |
642735 |
*** ../vim-7.0.066/src/version.c Tue Aug 22 21:51:18 2006
|
|
Karsten Hopp |
642735 |
--- src/version.c Tue Aug 29 16:09:35 2006
|
|
Karsten Hopp |
642735 |
***************
|
|
Karsten Hopp |
642735 |
*** 668,669 ****
|
|
Karsten Hopp |
642735 |
--- 668,671 ----
|
|
Karsten Hopp |
642735 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
642735 |
+ /**/
|
|
Karsten Hopp |
642735 |
+ 67,
|
|
Karsten Hopp |
642735 |
/**/
|
|
Karsten Hopp |
642735 |
|
|
Karsten Hopp |
642735 |
--
|
|
Karsten Hopp |
642735 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
642735 |
265. Your reason for not staying in touch with family is that
|
|
Karsten Hopp |
642735 |
they do not have e-mail addresses.
|
|
Karsten Hopp |
642735 |
|
|
Karsten Hopp |
642735 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
642735 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
642735 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
642735 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|