Skip to content
Browse files

Merge pull request #73 from zhaocai/develop

Fix winminheight error: E591: 'winheight' cannot be smaller than 'winminheight': winheight=5
  • Loading branch information...
2 parents 6740774 + dd5eea4 commit d0c533261f0125d68b880b32e4e9f411d4b11725 @joonty committed Apr 10, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 plugin/python/vdebug/ui/vimui.py
View
3 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 d0c5332

Please sign in to comment.
Something went wrong with that request. Please try again.