Ron Aaron wrote: > I have an occasional issue where my sessions do not restore the window > size correctly. This is in 7.3d, using GTK GUI (the issue may well > exist under Windows, but I haven't tried it there yet). > > I have a rather complex sessions setup, but the point is that I save a > special value "WinColumns" (among others) which, after I read in a > session, I set the "columns" to. Generally it works fine. > > In the case where I am starting gvim, I do this setting in a function > called inside a GUIEnter autocommand, to ensure that the GUI is up and > running before I try to set the columns. This also generally works > fine. > > However, on occasion -- about every third or fourth time on average -- > the GUI decides to set the "columns" to the (very odd) default value > of 122, rather than to the value of WinColumns. I can see that > WinColumns is correctly set to the value I expect, and the "echom" I > placed to give that info is in the code which actually sets the > columns size. But as I said, every so often gvim seems to ignore my > directive. > > Since it usually works, I assume that my code is mostly fine, and that > there is something odd, perhaps, in the timing of events that I don't > understand. > > Any insights would be helpful.
GTK resizing is hacky. I could never figure out how to do it properly. I'm sure that when we try to fix this problem another one will pop up. I'm still hoping that some day someone comes forward who either understands how GTK resizing works or takes the time to dive into it. -- Me? A skeptic? I trust you have proof. /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- 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
