To: vim-dev@vim.org Subject: Patch 6.1.406 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.406 (depends on 6.1.392) Problem: When a statusline item doesn't fit arbitrary text appears. (Christian J. Robinson) Solution: When there is just enough room but not for the "<" truncate the statusline item like there is no room. Files: src/buffer.c *** ../vim61.405/src/buffer.c Fri Mar 14 22:54:15 2003 --- src/buffer.c Sat Mar 15 21:57:51 2003 *************** *** 3490,3496 **** } } ! if (width - vim_strsize(s) > maxwidth) { /* Truncation mark is beyond max length */ #ifdef FEAT_MBYTE --- 3490,3496 ---- } } ! if (width - vim_strsize(s) >= maxwidth) { /* Truncation mark is beyond max length */ #ifdef FEAT_MBYTE *** ../vim61.405/src/version.c Sat Mar 15 21:09:58 2003 --- src/version.c Sat Mar 15 22:02:20 2003 *************** *** 613,614 **** --- 613,616 ---- { /* Add new patch number below this line */ + /**/ + 406, /**/ -- From "know your smileys": :q vi user saying, "How do I get out of this damn emacs editor?" /// 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 ///