Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix winminheight error: E591: 'winheight' cannot be smaller than 'winminheight': winheight=5 #73

Merged
merged 1 commit into from

2 participants

@zhaocai
E591: 'winheight' cannot be smaller than 'winminheight': winheight=5
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/link/zhaocai/vim/bundle/vdebug/plugin/python/start_vdebug.py", line 31, in run
    self.runner.run()
  File "/link/zhaocai/vim/bundle/vdebug/plugin/python/vdebug/runner.py", line 160, in run
    self.open()
  File "/link/zhaocai/vim/bundle/vdebug/plugin/python/vdebug/runner.py", line 47, in open
    self.ui.open()
  File "/link/zhaocai/vim/bundle/vdebug/plugin/python/vdebug/ui/vimui.py", line 62, in open
    self.statuswin.set_height(5)
  File "/link/zhaocai/vim/bundle/vdebug/plugin/python/vdebug/ui/vimui.py", line 273, in set_height
    self.command('set winheight=%s' % str(height))
  File "/link/zhaocai/vim/bundle/vdebug/plugin/python/vdebug/ui/vimui.py", line 355, in command
    vim.command(cmd)
vim.error         
@joonty joonty merged commit d0c5332 into from
@joonty
Owner

Thanks for this @zhaocai!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 9, 2013
  1. @zhaocai

    Fix winminheight error

    zhaocai authored
This page is out of date. Refresh to see the latest.
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"):
Something went wrong with that request. Please try again.