Skip to content

Commit 3883b30

Browse files
committed
Force integer type for window height variables
1 parent 7d29520 commit 3883b30

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

plugin/python/vdebug/ui/vimui.py

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

272272
def set_height(self,height):
273-
minheight = vim.eval("&winminheight")
273+
height = int(height)
274+
minheight = int(vim.eval("&winminheight"))
274275
if height < minheight:
275276
height = minheight
276277
if height <= 0:
277278
height = 1
278-
self.command('set winheight=%s' % str(height))
279+
self.command('set winheight=%i' % height)
279280

280281
def write(self, msg, return_focus = True, after = "normal G"):
281282
if not self.is_open:

0 commit comments

Comments
 (0)