Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 120 by [email protected]: folds are displayed incorrectly
after uncaught error in try/endtry
http://code.google.com/p/vim/issues/detail?id=120
What steps will reproduce the problem?
Execute the following code. I use netrw help file as an example because
it's a large file with many folds.
"-----BEGIN-----------------------------
edit $VIMRUNTIME/doc/pi_netrw.txt
" Change 'foldtext' to something different from default.
set foldtext=getline(v:foldstart)
set fdm=marker fdl=0
normal! ggzjzt
split
try
throw 'oopsy-doopsy'
finally
endtry
"-----END-------------------------------
What is the expected output? What do you see instead?
The result is that some or all folded lines are displayed with the wrong
value of 'foldtext' in both windows.
The display is corrected after Ctrl-L or after the cursor is moved.
What version of the product are you using? On what operating system?
Vim 7.3.829 from Cream project, Windows XP.
Please provide any additional information below.
This glitch affects the display of folded lines when an error occurs inside
try/endtry and is not caught: folded lines are sometimes temporarily
displayed with the wrong value of 'foldtext'. This is most noticeable when
there are several windows with many closed folds.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
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/groups/opt_out.