Permalink
Browse files

don't change current window height when setting max window height

  • Loading branch information...
dlobraico committed Jun 24, 2012
1 parent c48ab27 commit 60950b097c78ad8cc2b64337d2b33125527c2292
Showing with 2 additions and 10 deletions.
  1. +1 −5 plugin/lusty-explorer.vim
  2. +1 −5 src/lusty/display.rb
@@ -2000,11 +2000,7 @@ class Display
end
def self.max_height
- stored_height = $curwin.height
- $curwin.height = VIM::MOST_POSITIVE_INTEGER
- highest_allowable = $curwin.height
- $curwin.height = stored_height
- highest_allowable
+ VIM::MOST_POSITIVE_INTEGER
end
def self.max_width
View
@@ -219,11 +219,7 @@ def close
end
def self.max_height
- stored_height = $curwin.height
- $curwin.height = VIM::MOST_POSITIVE_INTEGER
- highest_allowable = $curwin.height
- $curwin.height = stored_height
- highest_allowable
+ VIM::MOST_POSITIVE_INTEGER
end
def self.max_width

0 comments on commit 60950b0

Please sign in to comment.