Thursday, June 1, 2023

Re: Multiple windows get corrupted


On Thursday, June 1, 2023 at 4:55:16 PM UTC-4 Bram Moolenaar wrote:

> As I mentioned in my post that begins with "Everybody FYI" I had just
> recently discovered that pulling the edge of the window left or right when
> the garbling happened it *made *it the problem go away.
> But I was hoping to find a fix for my problem so that it doesn't happen;
> specially when I am pair coding with a colleague. It gets frustrating
> specially since I couldn't figure out yet a keyboard short cut for pulling
> side of window left or right.

OK, so just before resizing the window manually Vim somehow is in a bad
state. It most likely is related to how the Vim window was resized. Do
you know? In case you are not sure you could use:
Yes. As I mentioned before I would resize the window to accommodate for a opening another file in side window.
 
verbose set columns?
verbose set lines?

Hopefully this leads to some Vim script or an autocommand that triggers
the problem. We need this to be able to write a test for it anyway.
Note that you need to start Vim with "--clean" to make sure your local
setup doesn't change what happens.
Regarding starting Vim with "--clean". The "--clean" option was suggested sometime at the start of this thread. It ran with no issues but it also considerably limited my editing capabilities.
Did I answer your query correctly/completely?

Thanks.
 

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/5718134f-857d-4ccd-a349-dbdf7f25e9a7n%40googlegroups.com.

Re: Multiple windows get corrupted

> As I mentioned in my post that begins with "Everybody FYI" I had just
> recently discovered that pulling the edge of the window left or right when
> the garbling happened it *made *it the problem go away.
> But I was hoping to find a fix for my problem so that it doesn't happen;
> specially when I am pair coding with a colleague. It gets frustrating
> specially since I couldn't figure out yet a keyboard short cut for pulling
> side of window left or right.

OK, so just before resizing the window manually Vim somehow is in a bad
state. It most likely is related to how the Vim window was resized. Do
you know? In case you are not sure you could use:

verbose set columns?
verbose set lines?

Hopefully this leads to some Vim script or an autocommand that triggers
the problem. We need this to be able to write a test for it anyway.
Note that you need to start Vim with "--clean" to make sure your local
setup doesn't change what happens.

--
From "know your smileys":
|-( Contact lenses, but has lost them

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20230601205507.6B1D41C0916%40moolenaar.net.

Re: Multiple windows get corrupted

As I mentioned in my post that begins with "Everybody FYI" I had just recently discovered that pulling the edge of the window left or right when the garbling happened it made it the problem go away.
But I was hoping to find a fix for my problem so that it doesn't happen; specially when I am pair coding with a colleague. It gets frustrating specially since I couldn't figure out yet a keyboard short cut for pulling side of window left or right.

On Thursday, June 1, 2023 at 3:27:32 PM UTC-4 Bram Moolenaar wrote:

> > You can try resizing it, e.g. by grabbing the left or right size and
> > dragging it just enough to make the window one character wider or
> > smaller. Then check if the 'columns' and 'lines' options did change.
>
> I did as you asked and answer is yes columns option did change by just
> one character increase.

Well, does that make the problem go away?


--
From "know your smileys":
:-| :-| Deja' vu!

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/5eeef62a-295d-412e-a9ab-e2954ff274adn%40googlegroups.com.

Re: Multiple windows get corrupted

> > You can try resizing it, e.g. by grabbing the left or right size and
> > dragging it just enough to make the window one character wider or
> > smaller. Then check if the 'columns' and 'lines' options did change.
>
> I did as you asked and answer is yes columns option did change by just
> one character increase.

Well, does that make the problem go away?


--
From "know your smileys":
:-| :-| Deja' vu!

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20230601192724.8DD291C0916%40moolenaar.net.

Re: Multiple windows get corrupted

Sorry I made a mess with my posting above as I was trying to reply to specific points in your post.

On Thursday, June 1, 2023 at 2:55:31 PM UTC-4 Ben Mehmet wrote:
On Thursday, June 1, 2023 at 5:01:20 AM UTC-4 Bram Moolenaar wrote:

> Ok. So as expected it happened again. And I followed the steps you (Bram)
> mentioned. I have following diffs between the bad (left side) and good
> (right side):
>
> columns=258 <-----> columns=120
> lines=72 <-----> lines=60
> modified <-----> nomodified
> scroll=35 <-----> scroll=29
> window=71 <-----> window=59
>
> lines, columns, and window are set in my .gvimrc. I am experimenting with
> commenting them out to see if any effect.
>
> Any ideas from your side?

The number of columns and lines has changed. Did the Vim window
actually change size? It would have gotten more than twice as wide.
Or the font has changed to a much smaller one.
Actually that is my doing. I had (as I usually do) start a session with just one window enough to display one file. So the 258 size is a result of my widening the vim window to make room for multiple windows (files). 


You can try resizing it, e.g. by grabbing the left or right size and
dragging it just enough to make the window one character wider or
smaller. Then check if the 'columns' and 'lines' options did change.
I did as you asked and answer is yes columns option did change by just one character increase. 

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/8ef072ee-586b-471d-8f06-a11cff508f52n%40googlegroups.com.

Re: Multiple windows get corrupted



On Thursday, June 1, 2023 at 5:01:20 AM UTC-4 Bram Moolenaar wrote:

> Ok. So as expected it happened again. And I followed the steps you (Bram)
> mentioned. I have following diffs between the bad (left side) and good
> (right side):
>
> columns=258 <-----> columns=120
> lines=72 <-----> lines=60
> modified <-----> nomodified
> scroll=35 <-----> scroll=29
> window=71 <-----> window=59
>
> lines, columns, and window are set in my .gvimrc. I am experimenting with
> commenting them out to see if any effect.
>
> Any ideas from your side?

The number of columns and lines has changed. Did the Vim window
actually change size? It would have gotten more than twice as wide.
Or the font has changed to a much smaller one.
Actually that is my doing. I had (as I usually do) start a session with just one window enough to display one file. So the 258 size is a result of my widening the vim window to make room for multiple windows (files). 


You can try resizing it, e.g. by grabbing the left or right size and
dragging it just enough to make the window one character wider or
smaller. Then check if the 'columns' and 'lines' options did change.
I did as you asked and answer is yes columns option did change by just one character increase. 

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/9973ef7b-0d1e-425f-8d72-9c6a012d1e7dn%40googlegroups.com.

Re: Multiple windows get corrupted

> Ok. So as expected it happened again. And I followed the steps you (Bram)
> mentioned. I have following diffs between the bad (left side) and good
> (right side):
>
> columns=258 <-----> columns=120
> lines=72 <-----> lines=60
> modified <-----> nomodified
> scroll=35 <-----> scroll=29
> window=71 <-----> window=59
>
> lines, columns, and window are set in my .gvimrc. I am experimenting with
> commenting them out to see if any effect.
>
> Any ideas from your side?

The number of columns and lines has changed. Did the Vim window
actually change size? It would have gotten more than twice as wide.
Or the font has changed to a much smaller one.

You can try resizing it, e.g. by grabbing the left or right size and
dragging it just enough to make the window one character wider or
smaller. Then check if the 'columns' and 'lines' options did change.

--
I AM THANKFUL...
...for the taxes that I pay because it means that I am employed.

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20230601090111.6344C1C0916%40moolenaar.net.