]> granicus.if.org Git - vim/commitdiff
updated for version 7.0129
authorBram Moolenaar <Bram@vim.org>
Fri, 12 Aug 2005 19:48:49 +0000 (19:48 +0000)
committerBram Moolenaar <Bram@vim.org>
Fri, 12 Aug 2005 19:48:49 +0000 (19:48 +0000)
runtime/doc/uganda.txt
src/ex_docmd.c
src/spell.c

index 6ceb9cb7e6bcbb42c193d84f7c3e47b7105cc04d..751c0b454c44f0d12d3a02c1ce4368e21fe76de1 100644 (file)
@@ -1,4 +1,4 @@
-*uganda.txt*    For Vim version 7.0aa.  Last change: 2005 Feb 24
+*uganda.txt*    For Vim version 7.0aa.  Last change: 2005 Aug 12
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -249,10 +249,11 @@ Europe:           Use a bank transfer if possible.  Your bank should have a form
 Credit Card:   You can use PayPal to send money with a Credit card.  This is
                the most widely used Internet based payment system.  It's
                really simple to use.  Use this link to find more info:
-                       https://www.paypal.com/affil/pal=Bram%40moolenaar.net
+                   https://www.paypal.com/affil/pal=Bram%40iccf-holland.org
                The e-mail address for sending the money to is:
-                       Bram@iccf-holland.org
-               For amounts above $150 sending a cheque is preferred.
+                   Bram@iccf-holland.org
+               For amounts above 400 Euro ($500) sending a cheque is
+               preferred.
 
 Others:                Transfer to one of these accounts if possible:
                    Postbank, account 4548774
index fa777b3c85e24aa9122608578370b4589d102f2e..0f5360f714432a78a2d4e991c14b688180f77424 100644 (file)
@@ -10051,16 +10051,16 @@ ex_filetype(eap)
     {
        if (*arg == 'o' || !filetype_detect)
        {
-           cmd_runtime((char_u *)FILETYPE_FILE, TRUE);
+           source_runtime((char_u *)FILETYPE_FILE, TRUE);
            filetype_detect = TRUE;
            if (plugin)
            {
-               cmd_runtime((char_u *)FTPLUGIN_FILE, TRUE);
+               source_runtime((char_u *)FTPLUGIN_FILE, TRUE);
                filetype_plugin = TRUE;
            }
            if (indent)
            {
-               cmd_runtime((char_u *)INDENT_FILE, TRUE);
+               source_runtime((char_u *)INDENT_FILE, TRUE);
                filetype_indent = TRUE;
            }
        }
@@ -10076,18 +10076,18 @@ ex_filetype(eap)
        {
            if (plugin)
            {
-               cmd_runtime((char_u *)FTPLUGOF_FILE, TRUE);
+               source_runtime((char_u *)FTPLUGOF_FILE, TRUE);
                filetype_plugin = FALSE;
            }
            if (indent)
            {
-               cmd_runtime((char_u *)INDOFF_FILE, TRUE);
+               source_runtime((char_u *)INDOFF_FILE, TRUE);
                filetype_indent = FALSE;
            }
        }
        else
        {
-           cmd_runtime((char_u *)FTOFF_FILE, TRUE);
+           source_runtime((char_u *)FTOFF_FILE, TRUE);
            filetype_detect = FALSE;
        }
     }
index 7513d0a73d3b2e158d1b7bbaee7ca525d82f76f4..10390ece6d4c940bad9d36299749a75aa9fed592 100644 (file)
@@ -474,8 +474,10 @@ typedef struct suggest_S
 #define SCORE_REP      87      /* REP replacement */
 #define SCORE_SUBST    93      /* substitute a character */
 #define SCORE_SIMILAR  33      /* substitute a similar character */
+#define SCORE_SUBCOMP  33      /* substitute a composing character */
 #define SCORE_DEL      94      /* delete a character */
 #define SCORE_DELDUP   64      /* delete a duplicated character */
+#define SCORE_DELCOMP  28      /* delete a composing character */
 #define SCORE_INS      96      /* insert a character */
 #define SCORE_INSDUP   66      /* insert a duplicate character */
 #define SCORE_INSCOMP  30      /* insert a composing character */
@@ -7740,9 +7742,23 @@ suggest_try_change(su)
                                                + MB_BYTE2LEN(
                                                    fword[sp->ts_fcharstart]);
 
+                                   /* For changing a composing character
+                                    * adjust the score from SCORE_SUBST to
+                                    * SCORE_SUBCOMP. */
+                                   if (enc_utf8
+                                           && utf_iscomposing(
+                                               mb_ptr2char(tword
+                                                   + sp->ts_twordlen
+                                                          - sp->ts_tcharlen))
+                                           && utf_iscomposing(
+                                               mb_ptr2char(fword
+                                                       + sp->ts_fcharstart)))
+                                       sp->ts_score -=
+                                                 SCORE_SUBST - SCORE_SUBCOMP;
+
                                    /* For a similar character adjust score
                                     * from SCORE_SUBST to SCORE_SIMILAR. */
-                                   if (lp->lp_slang->sl_has_map
+                                   else if (lp->lp_slang->sl_has_map
                                            && similar_chars(lp->lp_slang,
                                                mb_ptr2char(tword
                                                    + sp->ts_twordlen
@@ -7825,7 +7841,9 @@ suggest_try_change(su)
                    {
                        c = mb_ptr2char(fword + sp->ts_fidx);
                        stack[depth].ts_fidx += MB_BYTE2LEN(fword[sp->ts_fidx]);
-                       if (c == mb_ptr2char(fword + stack[depth].ts_fidx))
+                       if (enc_utf8 && utf_iscomposing(c))
+                           stack[depth].ts_score -= SCORE_DEL - SCORE_DELCOMP;
+                       else if (c == mb_ptr2char(fword + stack[depth].ts_fidx))
                            stack[depth].ts_score -= SCORE_DEL - SCORE_DELDUP;
                    }
                    else