hi Bram, I found a strange behavior in verbose message. There is a Vim script: ----- function! F() return range(13) endfunction
12verbose call F() ----- This outputs the following. (encoding=utf-8) ----- calling function F function F returning [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11..., 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] ----- The same parts are repeated. I wrote a patch for this problem. Please check and include it. https://gist.github.com/1625181 diff -r 881236484ca9 src/message.c --- a/src/message.c Wed Feb 09 11:00:26 2011 +0900 +++ b/src/message.c Tue Jan 17 15:08:09 2012 +0900 @@ -252,6 +252,12 @@ int i; int n; + if (vim_strsize(s) < room) + { + STRMOVE(buf, s); + return; + } + room -= 3; half = room / 2; len = 0; -- thinca <[email protected]> -- 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
