Hi all!

Patch "Make closed folds line up" by Charles Campbell is already on Brams todo 
list.
http://www.drchip.org/astronaut/vim/patch/folding.ptch

It works nicely apart from case "relativenumber nonumber" with numberwidth 
smaller than for absolute linenumbers would be appropriate.  And in this 
particular case, I am encountering rare crashes -- both with and without the 
named patch applied, “foldmethod=expr” and „syntax on” always in effect.  So 
far 
I cannot reproduce the crashes, they are too rare.

E.g. with terminal LINES=90 relativenumbers are never longer than 2 digits, 
thus 
I set numberwidth=3.  If the buffer holds a file with >10000 lines of text, 
numberwidth<6 seems to be not considered in all related code parts, the 
relativenumbers are consuming part of the padding introduced by the patch, 
which 
does not look as nice as with “norelativenumber number” set.


With the patch applied:
*** glibc detected *** ../vim: free(): invalid next size (fast): 
0x000005cd68894730 ***
======= Backtrace: =========
/lib/libc.so.6(+0x72d15)[0x6ade8c68dd15]
/lib/libc.so.6(cfree+0x6c)[0x6ade8c692b8c]
../vim(clear_tv+0x92)[0x5cd6616af92]
../vim(eval_to_string+0x60)[0x5cd66175f70]
../vim(eval_to_string_safe+0x98)[0x5cd66176438]
../vim(get_foldtext+0x318)[0x5cd661c7118]
../vim(+0x17d759)[0x5cd6626c759]
../vim(update_screen+0x43d)[0x5cd6626ec3d]
../vim(main_loop+0x5f7)[0x5cd662b34f7]
../vim(main+0x158b)[0x5cd662b4b1b]
/lib/libc.so.6(__libc_start_main+0xfd)[0x6ade8c639d6d]
../vim(+0x489f9)[0x5cd661379f9]
======= Memory map: ========
5cd660ef000-5cd662ff000 r-xp 00000000 08:09 187357                       
/var/tmp/portage/app-editors/vim-7.4.529/work/vim-7.4.529/src/vim
5cd664fe000-5cd6650a000 r--p 0020f000 08:09 187357                       
/var/tmp/portage/app-editors/vim-7.4.529/work/vim-7.4.529/src/vim
5cd6650a000-5cd6651e000 rw-p 0021b000 08:09 187357                       
/var/tmp/portage/app-editors/vim-7.4.529/work/vim-7.4.529/src/vim
5cd6651e000-5cd66526000 rw-p 00000000 00:00 0
5cd66526000-5cd6880f000 ---p 00000000 00:00 0
5cd6880f000-5cd69283000 rw-p 00000000 00:00 0                            [heap]
6ade84000000-6ade84021000 rw-p 00000000 00:00 0
6ade84021000-6ade88000000 ---p 00000000 00:00 0
6ade8adce000-6ade8ade3000 r-xp 00000000 103:05 1854236                   
/lib64/libgcc_s.so.1


-- 
Roland Eggner

-- 
-- 
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.

Attachment: pgp6AyZlGKtCC.pgp
Description: PGP signature

Raspunde prin e-mail lui