Bo Peng wrote:
+                       // if the file is not opened, open it.
+                       if (!theBufferList().exists(bm.filename))
+                               open(bm.filename);

Abdel, I find the reason. theBufferList() is global so bm.filename
exists. However, without a valid view(), BUFFER_SWITCH will fail.
>
How
can I tell if I need to open the file in the new window, or the file
is already in the window so I only need to switch?

FYI, when a buffer is opened it is opened, there is no such thing as "open in new window", the Buffer will be available to all windows.

I think your problem will be solved once the TabBar is in for all window. Then, I guarantee that view() will be valid.

Abdel.



Reply via email to