Bram Moolenaar wrote:
> Yegappan Lakshmanan wrote:
>
>> On 11/22/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote:
>>> It does happen for me:
>>>
>>> "gvim somefile"
>>> maximize gvim window
>>> minimize gvim window
>>> "gvim --remote-tab otherfile"
>>>
>>> Now I only see the tab label for "otherfile". I can click on the gap
>>> before it to go to "somefile", and then only that label is shown.
>>>
>> Which version of MS-Windows (Win98/WinME/Win2K/WinXP/Vista)
>> are you using? I am not able to reproduce this problem using the
>> above steps on WinXP and Win2K.
>>
>> I am using the following version of Vim:
>>
>> VIM - Vi IMproved 7.0 (2006 May 7, compiled May 7 2006 16:21:39)
>> MS-Windows 32 bit GUI version
>> Compiled by [EMAIL PROTECTED]
>> Big version with GUI. Features included (+) or not (-):
>>
>> Anybody else seeing this problem on MS-Windows?
>
> It apparently only happens when 'encoding' is set to "utf-8". Can you
> reproduce it then?
>
Yes, I can reproduce it now.
When check this problem(I run it in debugger and often interrupt debugging),
I found another problem:
run "gvim a.txt";
kill the gvim process, so we get a .a.txt.swp file;
run "gvim a.txt" again, gvim prompts whether I want to recover it;
click "Recover" button, gvim shows some messages;
press q or ESC, then vim crashes.
// VIM 7.0.164, WinXP
Here is a patch for it:
Index: ex_eval.c
===================================================================
--- ex_eval.c (revision 184)
+++ ex_eval.c (working copy)
@@ -2025,8 +2026,10 @@
/* If an error was about to be converted to an exception when
* enter_cleanup() was called, free the message list. */
- free_msglist(*msg_list);
- *msg_list = NULL;
+ if (msg_list) {
+ free_msglist(*msg_list);
+ *msg_list = NULL;
+ }
}
/*