Permalink
Browse files

Fix winminheight error

  • Loading branch information...
1 parent 6740774 commit dd5eea4c79c46f82d47056f45b22bb8591f6bd3d @zhaocai zhaocai committed Apr 9, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 plugin/python/vdebug/ui/vimui.py
@@ -270,6 +270,9 @@ def getwinnr(self):
return int(vim.eval("bufwinnr('"+self.name+"')"))
def set_height(self,height):
+ minheight = vim.eval("&winminheight")
+ if height < minheight:
+ height = minheight
self.command('set winheight=%s' % str(height))
def write(self, msg, return_focus = True, after = "normal G"):

0 comments on commit dd5eea4

Please sign in to comment.