|
Karsten Hopp |
698978 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
698978 |
Subject: Patch 7.3.489
|
|
Karsten Hopp |
698978 |
Fcc: outbox
|
|
Karsten Hopp |
698978 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
698978 |
Mime-Version: 1.0
|
|
Karsten Hopp |
698978 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
698978 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
698978 |
------------
|
|
Karsten Hopp |
698978 |
|
|
Karsten Hopp |
698978 |
Patch 7.3.489
|
|
Karsten Hopp |
698978 |
Problem: CTRL-] in Insert mode does not expand abbreviation when used in a
|
|
Karsten Hopp |
698978 |
mapping. (Yichao Zhou)
|
|
Karsten Hopp |
698978 |
Solution: Special case using CTRL-]. (Christian Brabandt)
|
|
Karsten Hopp |
698978 |
Files: src/getchar.c, src/edit.c
|
|
Karsten Hopp |
698978 |
|
|
Karsten Hopp |
698978 |
|
|
Karsten Hopp |
698978 |
*** ../vim-7.3.488/src/getchar.c 2012-02-05 22:05:44.000000000 +0100
|
|
Karsten Hopp |
698978 |
--- src/getchar.c 2012-04-05 15:54:00.000000000 +0200
|
|
Karsten Hopp |
698978 |
***************
|
|
Karsten Hopp |
698978 |
*** 4352,4359 ****
|
|
Karsten Hopp |
698978 |
|
|
Karsten Hopp |
698978 |
if (typebuf.tb_no_abbr_cnt) /* abbrev. are not recursive */
|
|
Karsten Hopp |
698978 |
return FALSE;
|
|
Karsten Hopp |
698978 |
! if ((KeyNoremap & (RM_NONE|RM_SCRIPT)) != 0)
|
|
Karsten Hopp |
698978 |
! /* no remapping implies no abbreviation */
|
|
Karsten Hopp |
698978 |
return FALSE;
|
|
Karsten Hopp |
698978 |
|
|
Karsten Hopp |
698978 |
/*
|
|
Karsten Hopp |
698978 |
--- 4352,4360 ----
|
|
Karsten Hopp |
698978 |
|
|
Karsten Hopp |
698978 |
if (typebuf.tb_no_abbr_cnt) /* abbrev. are not recursive */
|
|
Karsten Hopp |
698978 |
return FALSE;
|
|
Karsten Hopp |
698978 |
!
|
|
Karsten Hopp |
698978 |
! /* no remapping implies no abbreviation, except for CTRL-] */
|
|
Karsten Hopp |
698978 |
! if ((KeyNoremap & (RM_NONE|RM_SCRIPT)) != 0 && c != Ctrl_RSB)
|
|
Karsten Hopp |
698978 |
return FALSE;
|
|
Karsten Hopp |
698978 |
|
|
Karsten Hopp |
698978 |
/*
|
|
Karsten Hopp |
698978 |
*** ../vim-7.3.488/src/edit.c 2012-02-29 18:22:03.000000000 +0100
|
|
Karsten Hopp |
698978 |
--- src/edit.c 2012-04-05 15:57:46.000000000 +0200
|
|
Karsten Hopp |
698978 |
***************
|
|
Karsten Hopp |
698978 |
*** 1455,1467 ****
|
|
Karsten Hopp |
698978 |
Insstart_blank_vcol = get_nolist_virtcol();
|
|
Karsten Hopp |
698978 |
}
|
|
Karsten Hopp |
698978 |
|
|
Karsten Hopp |
698978 |
! if (vim_iswordc(c) || !echeck_abbr(
|
|
Karsten Hopp |
698978 |
#ifdef FEAT_MBYTE
|
|
Karsten Hopp |
698978 |
/* Add ABBR_OFF for characters above 0x100, this is
|
|
Karsten Hopp |
698978 |
* what check_abbr() expects. */
|
|
Karsten Hopp |
698978 |
(has_mbyte && c >= 0x100) ? (c + ABBR_OFF) :
|
|
Karsten Hopp |
698978 |
#endif
|
|
Karsten Hopp |
698978 |
! c))
|
|
Karsten Hopp |
698978 |
{
|
|
Karsten Hopp |
698978 |
insert_special(c, FALSE, FALSE);
|
|
Karsten Hopp |
698978 |
#ifdef FEAT_RIGHTLEFT
|
|
Karsten Hopp |
698978 |
--- 1455,1470 ----
|
|
Karsten Hopp |
698978 |
Insstart_blank_vcol = get_nolist_virtcol();
|
|
Karsten Hopp |
698978 |
}
|
|
Karsten Hopp |
698978 |
|
|
Karsten Hopp |
698978 |
! /* Insert a normal character and check for abbreviations on a
|
|
Karsten Hopp |
698978 |
! * special character. Let CTRL-] expand abbreviations without
|
|
Karsten Hopp |
698978 |
! * inserting it. */
|
|
Karsten Hopp |
698978 |
! if (vim_iswordc(c) || (!echeck_abbr(
|
|
Karsten Hopp |
698978 |
#ifdef FEAT_MBYTE
|
|
Karsten Hopp |
698978 |
/* Add ABBR_OFF for characters above 0x100, this is
|
|
Karsten Hopp |
698978 |
* what check_abbr() expects. */
|
|
Karsten Hopp |
698978 |
(has_mbyte && c >= 0x100) ? (c + ABBR_OFF) :
|
|
Karsten Hopp |
698978 |
#endif
|
|
Karsten Hopp |
698978 |
! c) && c != Ctrl_RSB))
|
|
Karsten Hopp |
698978 |
{
|
|
Karsten Hopp |
698978 |
insert_special(c, FALSE, FALSE);
|
|
Karsten Hopp |
698978 |
#ifdef FEAT_RIGHTLEFT
|
|
Karsten Hopp |
698978 |
*** ../vim-7.3.488/src/version.c 2012-04-05 16:04:58.000000000 +0200
|
|
Karsten Hopp |
698978 |
--- src/version.c 2012-04-05 16:06:12.000000000 +0200
|
|
Karsten Hopp |
698978 |
***************
|
|
Karsten Hopp |
698978 |
*** 716,717 ****
|
|
Karsten Hopp |
698978 |
--- 716,719 ----
|
|
Karsten Hopp |
698978 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
698978 |
+ /**/
|
|
Karsten Hopp |
698978 |
+ 489,
|
|
Karsten Hopp |
698978 |
/**/
|
|
Karsten Hopp |
698978 |
|
|
Karsten Hopp |
698978 |
--
|
|
Karsten Hopp |
698978 |
Just think of all the things we haven't thought of yet.
|
|
Karsten Hopp |
698978 |
|
|
Karsten Hopp |
698978 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
698978 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
698978 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
698978 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|