Skip to content

Commit

Permalink
Merge pull request #40 from myint/division
Browse files Browse the repository at this point in the history
Use correct integer division
  • Loading branch information
ymattw committed Jun 20, 2014
2 parents e3e838d + 18b3b85 commit 0c9f808
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cdiff.py
Expand Up @@ -508,7 +508,7 @@ def _fit_with_marker_mix(text, base_color, width, pad=False):
# [terminal size minus the line number columns and 3 separating
# spaces
#
width = (terminal_size()[0] - num_width * 2 - 3) / 2
width = (terminal_size()[0] - num_width * 2 - 3) // 2
except Exception:
# If terminal detection failed, set back to default
width = 80
Expand Down

0 comments on commit 0c9f808

Please sign in to comment.