dcafferty / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

Windows gui: window position is changed when invoking :vert & :tab under certain conditions #123

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I sometimes use gvim 7.3 @ win7 (64 bit). When I move the gvim window by means 
of the <windows-key + left/right> key combination to the left or right half of 
the screen, it seems gvim doesn't properly notice this change. When I invoke 
any command with :vert prepended (e.g. :vert split), gvim moves the gvim window 
back to the previous position on the screen.

Steps:
1. Open gvim -> gvim window opens at position #1
2. Press <windows-left> -> gvim window is moved to the left (position #2)
3. Type :vert split

Result: The gvim window is back at position #1.

This problem seems to affect only the win gui. At least with gnome/gtk 
everything seems ok.

The problem also affects :tab-related commands. It was verified by a user. See 
https://groups.google.com/d/topic/vim_dev/MiKswL7hN6E/discussion

Original issue reported on code.google.com by minilith on 13 Mar 2013 at 8:19

GoogleCodeExporter commented 9 years ago
This happens, because Vim will add a gui scrollbar, causing to resize. A 
workaround is to disable the scrollbar feature using the 'guioptions' setting.
This has been discussed before and a partial patch has been posted here:
https://groups.google.com/d/msg/vim_dev/xRdOvRDM3-Y/Ej-vJ0dWzPoJ

Original comment by chrisbr...@googlemail.com on 30 Sep 2014 at 8:03

GoogleCodeExporter commented 9 years ago
Issue 218 has been merged into this issue.

Original comment by chrisbr...@googlemail.com on 2 Oct 2014 at 7:54