rzyns / macvim

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

MacVim on OS X 10.10 Yosemite: Native Full Screen cuts off first top 5 lines #514

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If you enable native full screen support in the MacVim settings, open text file 
and enter full screen the first 5 lines of text are cut off. Note that if 
current line happens to be at the top (among the lines that are cut off) the 
cursor is also hidden from view which can be confusing (see attached 
screenshot). 

Here is my MacVim version output:

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Oct  2 2014 09:33:22)
MacOS X (unix) version
Included patches: 1-383
Compiled by Mario Grgic
Huge version with MacVim GUI.  Features included (+) or not (-):
+acl             +file_in_path    +mouse_sgr       +tag_binary
+arabic          +find_in_path    -mouse_sysmouse  +tag_old_static
+autocmd         +float           +mouse_urxvt     -tag_any_white
+balloon_eval    +folding         +mouse_xterm     -tcl
+browse          -footer          +multi_byte      +terminfo
++builtin_terms  +fork()          +multi_lang      +termresponse
+byte_offset     +fullscreen      -mzscheme        +textobjects
+cindent         -gettext         +netbeans_intg   +title
+clientserver    -hangul_input    +odbeditor       +toolbar
+clipboard       +iconv           +path_extra      +transparency
+cmdline_compl   +insert_expand   +perl            +user_commands
+cmdline_hist    +jumplist        +persistent_undo +vertsplit
+cmdline_info    +keymap          +postscript      +virtualedit
+comments        +langmap         +printer         +visual
+conceal         +libcall         +profile         +visualextra
+cryptv          +linebreak       +python          +viminfo
+cscope          +lispindent      -python3         +vreplace
+cursorbind      +listcmds        +quickfix        +wildignore
+cursorshape     +localmap        +reltime         +wildmenu
+dialog_con_gui  -lua             +rightleft       +windows
+diff            +menu            +ruby            +writebackup
+digraphs        +mksession       +scrollbind      -X11
+dnd             +modify_fname    +signs           -xfontset
-ebcdic          +mouse           +smartindent     +xim
+emacs_tags      +mouseshape      -sniff           -xsmp
+eval            +mouse_dec       +startuptime     -xterm_clipboard
+ex_extra        -mouse_gpm       +statusline      -xterm_save
+extra_search    -mouse_jsbterm   -sun_workshop    -xpm
+farsi           +mouse_netterm   +syntax
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/Applications/MacVim.app/Contents/Resources/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall 
-Wno-unknown-pragmas -pipe  -DMACOS_X_UNIX  -g -O2 -U_FORTIFY_SOURCE 
-D_FORTIFY_SOURCE=1
Linking: gcc   -L. -L/usr/local/lib -L. -L/usr/local/lib  -L/usr/local/lib -o 
Vim -framework Cocoa -framework Carbon       -lm -lncurses  -liconv -framework 
Cocoa   -fstack-protector -L/usr/local/lib  
-L/System/Library/Perl/5.16/darwin-thread-multi-2level/CORE -lperl -framework 
Python   -framework Ruby

Original issue reported on code.google.com by veritas....@gmail.com on 17 Oct 2014 at 3:02

Attachments:

GoogleCodeExporter commented 9 years ago
Note also that when you exit the full screen via the new "maximize" button the 
MacVim window is not resized properly but number of columns remains the same as 
it was in full screen (365 in my case).

Original comment by veritas....@gmail.com on 17 Oct 2014 at 3:07

GoogleCodeExporter commented 9 years ago
I see the system resizing the window just as the full screen animation finishes 
(this is on a 1440x900 screen):

Oct 19 10:09:29 perlocution.local MacVim[11038] <Debug>: -[MMWindow 
setFrame:display:]@80: Setting window frame to {{1, 46}, {1438, 808}}
2014-10-19 10:09:29.568 MacVim[11038:314223] (
    0   MacVim                              0x0000000100030c7b -[MMWindow setFrame:display:] + 331
    1   AppKit                              0x00007fff91810105 -[NSToolbarFullScreenWindowManager resizeContentWindow] + 206
    2   AppKit                              0x00007fff9181617b -[NSToolbarFullScreenWindowManager windowDidChangeFullScreenStatus:] + 153
...

I haven't figured out why, but I've managed to work around it for now by moving 
the call to -[MMWindowController maximizeWindow:] to the very end of the 
animation. It makes the transition a bit rough, but at least it's not broken.

Original comment by peter.sagerson@gmail.com on 19 Oct 2014 at 5:13

Attachments:

GoogleCodeExporter commented 9 years ago
the workaround works here.

Original comment by bchesn...@gmail.com on 19 Oct 2014 at 8:37

GoogleCodeExporter commented 9 years ago
I almost fixed this here - https://github.com/b4winckler/macvim/pull/48

If someone can help with the issue I mentioned there I think we are clear to 
go. 

Original comment by vesti...@gmail.com on 14 Nov 2014 at 9:02

GoogleCodeExporter commented 9 years ago
Quickfix: Open a second tab. The resize does reposition of the view correctly. 

Original comment by brandvie...@gmail.com on 18 Nov 2014 at 10:15

GoogleCodeExporter commented 9 years ago
That's strange, but want to confirm that opening a second tab fixes the first. 
Thanks for the tip.

Original comment by matt...@maltblue.com on 4 Mar 2015 at 2:05

GoogleCodeExporter commented 9 years ago
I've had problems when going to fullscreen for a while, my fix is to set the 
guifont again and it always resizes the window correctly to fill the screen.

So I just type ":set guifont=", I can then TAB for it to autocomplete with the 
current font.

Original comment by julia...@gmail.com on 27 Apr 2015 at 10:08

GoogleCodeExporter commented 9 years ago
I believe I have the latest version

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Apr 28 2015 08:48:37)
MacOS X (unix) version
Included patches: 1-712
Compiled by Homebrew

It still suppress the tabs when going full screen

Original comment by luismayo...@gmail.com on 28 Apr 2015 at 2:23