Mercurial > vim
comparison src/gui_mac.c @ 12515:972ea22c946f v8.0.1136
patch 8.0.1136: W_WIDTH() is always the same
commit https://github.com/vim/vim/commit/0263146b5dbbb6c120ce2e7720256503b864425d
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Sep 22 15:20:32 2017 +0200
patch 8.0.1136: W_WIDTH() is always the same
Problem: W_WIDTH() is always the same.
Solution: Expand the macro.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 22 Sep 2017 15:30:06 +0200 |
parents | 2a8890b80923 |
children | 351cf7c67bbe |
comparison
equal
deleted
inserted
replaced
12514:55f1b7ff0467 | 12515:972ea22c946f |
---|---|
1610 page = sb_info->size; | 1610 page = sb_info->size; |
1611 } | 1611 } |
1612 else /* Bottom scrollbar */ | 1612 else /* Bottom scrollbar */ |
1613 { | 1613 { |
1614 sb_info = sb; | 1614 sb_info = sb; |
1615 page = W_WIDTH(curwin) - 5; | 1615 page = curwin->w_width - 5; |
1616 } | 1616 } |
1617 | 1617 |
1618 switch (partCode) | 1618 switch (partCode) |
1619 { | 1619 { |
1620 case kControlUpButtonPart: data = -1; break; | 1620 case kControlUpButtonPart: data = -1; break; |