Skip to content

Commit 8e8bb2c

Browse files
committed
Don't allow 0 for window height, fixes #84
1 parent 042aaa4 commit 8e8bb2c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

plugin/python/vdebug/ui/vimui.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,11 @@ def getwinnr(self):
270270
return int(vim.eval("bufwinnr('"+self.name+"')"))
271271

272272
def set_height(self,height):
273-
minheight = vim.eval("&winminheight")
273+
minheight = vim.eval("&winminheight")
274274
if height < minheight:
275-
height = minheight
275+
height = minheight
276+
if height < 0:
277+
height = 1
276278
self.command('set winheight=%s' % str(height))
277279

278280
def write(self, msg, return_focus = True, after = "normal G"):

0 commit comments

Comments
 (0)