To: vim-dev@vim.org Subject: Patch 6.1.283 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.283 Problem: For ":sign" the icon file name cannot contain a space. Solution: Handle backslashes in the file name. (Yasuhiro Matsumoto) Files: src/ex_cmds.c *** ../vim61.282/src/ex_cmds.c Sun Oct 27 14:30:34 2002 --- src/ex_cmds.c Tue Jan 7 21:03:33 2003 *************** *** 5248,5259 **** arg = skipwhite(p); if (*arg == NUL) break; ! p = skiptowhite(arg); if (STRNCMP(arg, "icon=", 5) == 0) { arg += 5; vim_free(sp->sn_icon); sp->sn_icon = vim_strnsave(arg, (int)(p - arg)); #ifdef FEAT_SIGN_ICONS if (gui.in_use) { --- 5248,5260 ---- arg = skipwhite(p); if (*arg == NUL) break; ! p = skiptowhite_esc(arg); if (STRNCMP(arg, "icon=", 5) == 0) { arg += 5; vim_free(sp->sn_icon); sp->sn_icon = vim_strnsave(arg, (int)(p - arg)); + backslash_halve(sp->sn_icon); #ifdef FEAT_SIGN_ICONS if (gui.in_use) { *** ../vim61.282/src/version.c Tue Jan 7 21:00:20 2003 --- src/version.c Tue Jan 7 21:07:29 2003 *************** *** 608,609 **** --- 608,611 ---- { /* Add new patch number below this line */ + /**/ + 283, /**/ -- `When any government, or any church for that matter, undertakes to say to its subjects, "This you may not read, this you must not see, this you are forbidden to know," the end result is tyranny and oppression no matter how holy the motives' -- Robert A Heinlein, "If this goes on --" /// 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 /// \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///