On Di, 21 Okt 2014, toothpik wrote:

> I can't say positively it started today, but I did build a new vim
> today, 7.4.483, and when I tried to make a log entry in a text file
> discovered none of my iabbrevs were working
> 
> weirdly, dd almost works, but inserts what ddss is supposed to insert
> 
> iabbrev <silent> dd <c-r>=strftime("%Y-%b-%d")<cr><c-r>=Eatchar('\s')<cr>
> iabbrev <silent> ddss <c-r>=strftime("%Y-%b-%d  %H:%M  
> %a")<cr><c-r>=Eatchar('\s')<cr>
> 
> my whole .vimrc can be seen at
> 
>     https://github.com/toothpik/toothpik-s-.vimrc/blob/master/.vimrc
> 
> most likely I've done something silly and embarrassing so please be kind
> when you point it out

Okay, now that is getting embarrassing for me...

diff --git a/src/getchar.c b/src/getchar.c
--- a/src/getchar.c
+++ b/src/getchar.c
@@ -4521,25 +4521,25 @@ check_abbr(c, ptr, col, mincol)
 #else
        mp = first_abbr;
 #endif
-       qlen = mp->m_keylen;
-       if (vim_strbyte(mp->m_keys, K_SPECIAL) != NULL)
-       {
-           char_u      *q = vim_strsave(mp->m_keys);
-
-           /* might have CSI escaped mp->m_keys */
-           if (q != NULL)
-           {
-               vim_unescape_csi(q);
-               qlen = (int)STRLEN(q);
-               vim_free(q);
-           }
-       }
        for ( ; mp;
 #ifdef FEAT_LOCALMAP
                mp->m_next == NULL ? (mp = mp2, mp2 = NULL) :
 #endif
                (mp = mp->m_next))
        {
+           qlen = mp->m_keylen;
+           if (vim_strbyte(mp->m_keys, K_SPECIAL) != NULL)
+           {
+               char_u  *q = vim_strsave(mp->m_keys);
+
+               /* might have CSI escaped mp->m_keys */
+               if (q != NULL)
+               {
+                   vim_unescape_csi(q);
+                   qlen = (int)STRLEN(q);
+                   vim_free(q);
+               }
+           }
            /* find entries with right mode and keys */
            if (       (mp->m_mode & State)
                    && qlen == len


Best,
Christian
-- 
Letzte Worte eines Elektrikers:
  "Ich schalt jetzt eeeiiiiiiiiiiinnnnn."

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui