To: vim-dev@vim.org Subject: Patch 6.1.394 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.394 (depends on 6.1.390) Problem: The netbeans interface doesn't recognize multibyte glyph names. Solution: Check the number of cells rather than bytes to decide whether a glyph name is not a filename. (Daniel Elstner) Files: src/netbeans.c *** ../vim61.393/src/netbeans.c Wed Mar 12 19:19:15 2003 --- src/netbeans.c Sat Mar 15 12:37:45 2003 *************** *** 2737,2744 **** if (*glyphFile == NUL) /* no glyph, line highlighting only */ coloncmd(":sign define %d linehl=NB_%s", i + 1, typeName); ! else if (STRLEN(glyphFile) <= 2) ! /* two-character glyph name, use as text glyph with texthl */ coloncmd(":sign define %d text=%s texthl=NB_%s", i + 1, glyphFile, typeName); else --- 2737,2745 ---- if (*glyphFile == NUL) /* no glyph, line highlighting only */ coloncmd(":sign define %d linehl=NB_%s", i + 1, typeName); ! else if (vim_strsize(glyphFile) <= 2) ! /* one- or two-character glyph name, use as text glyph with ! * texthl */ coloncmd(":sign define %d text=%s texthl=NB_%s", i + 1, glyphFile, typeName); else *** ../vim61.393/src/version.c Sat Mar 15 16:11:20 2003 --- src/version.c Sat Mar 15 16:12:30 2003 *************** *** 613,614 **** --- 613,616 ---- { /* Add new patch number below this line */ + /**/ + 394, /**/ -- hundred-and-one symptoms of being an internet addict: 89. In addition to your e-mail address being on your business cards you even have your own domain. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\ \\\ Project leader for A-A-P -- http://www.A-A-P.org /// \\\ Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///