Explorar el Código

Don't break wincmd= when using current window (#58)

Avoid setting winfixheight and winfixwidth when MRU is set to open in
the current window as doing so breaks vim's command to equalise windows.
Mark Woods hace 3 años
padre
commit
bcaecf15c7
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. 4 2
      plugin/mru.vim

+ 4 - 2
plugin/mru.vim

@@ -678,8 +678,10 @@ func! s:MRU_Open_Window(pat, splitdir, winsz) abort
   " Set the 'filetype' to 'mru'. This allows the user to apply custom
   " syntax highlighting or other changes to the MRU bufer.
   setlocal filetype=mru
-  " Use fixed height and width for the MRU window
-  setlocal winfixheight winfixwidth
+  if !g:MRU_Use_Current_Window
+    " Use fixed height and width for the MRU window
+    setlocal winfixheight winfixwidth
+  endif
 
   " Setup the cpoptions properly for the maps to work
   let old_cpoptions = &cpoptions