From 01f72bc518ae04fc86c110f3e6283314ce1757c0 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 28 May 2019 23:47:35 +1200 Subject: Pare down to just a few lines --- doc/equalalways_resized.txt | 5 ++--- plugin/equalalways_resized.vim | 15 +++------------ 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/doc/equalalways_resized.txt b/doc/equalalways_resized.txt index 44dcbd7..e4098df 100644 --- a/doc/equalalways_resized.txt +++ b/doc/equalalways_resized.txt @@ -1,4 +1,4 @@ -*equalalways_resized.txt* For Vim version 7.0 Last change: 2018 Aug 16 +*equalalways_resized.txt* For Vim version 7.0 Last change: 2019 May 28 DESCRIPTION *equalalways_resized* @@ -7,8 +7,7 @@ resized. REQUIREMENTS *equalalways_resized-requirements* -This plugin only loads if 'compatible' is not set. It requires the |+autocmd| -and |+windows| features, with the |VimResized| event introduced in |version7|. +This plugin only loads if 'compatible' is not set. AUTHOR *equalalways_resized-author* diff --git a/plugin/equalalways_resized.vim b/plugin/equalalways_resized.vim index 80ae548..436255d 100644 --- a/plugin/equalalways_resized.vim +++ b/plugin/equalalways_resized.vim @@ -5,23 +5,14 @@ " Author: Tom Ryder " License: Same as Vim itself " -if exists('loaded_equalalways_resized') || &compatible - finish -endif -if !has('autocmd') || !has('windows') || !exists('##VimResized') +if exists('loaded_equalalways_resized') || &compatible || v:version < 700 finish endif let loaded_equalalways_resized = 1 -" If 'equalalways' is set, rebalance the windows -function! s:Rebalance() abort - if &equalalways - wincmd = - endif -endfunction - " Add hook for VimResized event augroup equalalways_resized autocmd! - autocmd VimResized * call s:Rebalance() + autocmd VimResized * + \ if &equalalways | wincmd = | endif augroup END -- cgit v1.2.3 From 5519cf9d8613e0fa90f367593f2c9e39a7331696 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 28 May 2019 23:47:52 +1200 Subject: Bump VERSION --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 0ea3a94..0d91a54 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.2.0 +0.3.0 -- cgit v1.2.3