Skip to content
This repository was archived by the owner on Jun 30, 2023. It is now read-only.

Commit 6748c56

Browse files
committed
fix division on python3
1 parent e470c57 commit 6748c56

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

neovim_gui/gtk_ui.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Neovim Gtk+ UI."""
2+
from __future__ import print_function, division
23
import math
34

45
import cairo
@@ -316,8 +317,8 @@ def _gtk_configure(self, widget, event):
316317
def resize(*args):
317318
self._resize_timer_id = None
318319
width, height = self._window.get_size()
319-
columns = width / self._cell_pixel_width
320-
rows = height / self._cell_pixel_height
320+
columns = width // self._cell_pixel_width
321+
rows = height // self._cell_pixel_height
321322
if self._screen.columns == columns and self._screen.rows == rows:
322323
return
323324
self._bridge.resize(columns, rows)

0 commit comments

Comments
 (0)