Mercurial > vim
comparison src/gui.c @ 12529:158917d728b4 v8.0.1143
patch 8.0.1143: macros always expand to the same thing
commit https://github.com/vim/vim/commit/e0de17d84e1612dbc9362989194de5674f221de5
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 24 16:24:34 2017 +0200
patch 8.0.1143: macros always expand to the same thing
Problem: Macros always expand to the same thing.
Solution: Remove W_VSEP_WIDTH() and W_STATUS_HEIGHT().
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 24 Sep 2017 16:30:04 +0200 |
parents | 972ea22c946f |
children | 25f7d8ee04c7 |
comparison
equal
deleted
inserted
replaced
12528:608ee63b6014 | 12529:158917d728b4 |
---|---|
4908 else | 4908 else |
4909 update_mouseshape(SHAPE_IDX_MORE); | 4909 update_mouseshape(SHAPE_IDX_MORE); |
4910 } | 4910 } |
4911 else if (row > wp->w_height) /* below status line */ | 4911 else if (row > wp->w_height) /* below status line */ |
4912 update_mouseshape(SHAPE_IDX_CLINE); | 4912 update_mouseshape(SHAPE_IDX_CLINE); |
4913 else if (!(State & CMDLINE) && W_VSEP_WIDTH(wp) > 0 && col == wp->w_width | 4913 else if (!(State & CMDLINE) && wp->w_vsep_width > 0 && col == wp->w_width |
4914 && (row != wp->w_height || !stl_connected(wp)) && msg_scrolled == 0) | 4914 && (row != wp->w_height || !stl_connected(wp)) && msg_scrolled == 0) |
4915 update_mouseshape(SHAPE_IDX_VSEP); | 4915 update_mouseshape(SHAPE_IDX_VSEP); |
4916 else if (!(State & CMDLINE) && W_STATUS_HEIGHT(wp) > 0 | 4916 else if (!(State & CMDLINE) && wp->w_status_height > 0 |
4917 && row == wp->w_height && msg_scrolled == 0) | 4917 && row == wp->w_height && msg_scrolled == 0) |
4918 update_mouseshape(SHAPE_IDX_STATUS); | 4918 update_mouseshape(SHAPE_IDX_STATUS); |
4919 else | 4919 else |
4920 update_mouseshape(-2); | 4920 update_mouseshape(-2); |
4921 #endif | 4921 #endif |