Mercurial > vim
comparison src/gui_w32.c @ 11129:f4ea50924c6d v8.0.0452
patch 8.0.0452: some macros are in lower case
commit https://github.com/vim/vim/commit/1c46544412382db8b3203d6c78e550df885540bd
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 12 20:10:05 2017 +0100
patch 8.0.0452: some macros are in lower case
Problem: Some macros are in lower case.
Solution: Make a few more macros upper case.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 12 Mar 2017 20:15:06 +0100 |
parents | 04eb70c77cf4 |
children | e2b34123c7dc |
comparison
equal
deleted
inserted
replaced
11128:23154628ab7f | 11129:f4ea50924c6d |
---|---|
7110 #ifdef FEAT_MBYTE | 7110 #ifdef FEAT_MBYTE |
7111 l = (*mb_ptr2len)(pend); | 7111 l = (*mb_ptr2len)(pend); |
7112 #else | 7112 #else |
7113 l = 1; | 7113 l = 1; |
7114 #endif | 7114 #endif |
7115 if (l == 1 && vim_iswhite(*pend) | 7115 if (l == 1 && VIM_ISWHITE(*pend) |
7116 && textWidth > maxDialogWidth * 3 / 4) | 7116 && textWidth > maxDialogWidth * 3 / 4) |
7117 last_white = pend; | 7117 last_white = pend; |
7118 textWidth += GetTextWidthEnc(hdc, pend, l); | 7118 textWidth += GetTextWidthEnc(hdc, pend, l); |
7119 if (textWidth >= maxDialogWidth) | 7119 if (textWidth >= maxDialogWidth) |
7120 { | 7120 { |
8579 | 8579 |
8580 void | 8580 void |
8581 gui_mch_post_balloon(BalloonEval *beval, char_u *mesg) | 8581 gui_mch_post_balloon(BalloonEval *beval, char_u *mesg) |
8582 { | 8582 { |
8583 POINT pt; | 8583 POINT pt; |
8584 | |
8584 // TRACE0("gui_mch_post_balloon {{{"); | 8585 // TRACE0("gui_mch_post_balloon {{{"); |
8585 if (beval->showState == ShS_SHOWING) | 8586 if (beval->showState == ShS_SHOWING) |
8586 return; | 8587 return; |
8587 GetCursorPos(&pt); | 8588 GetCursorPos(&pt); |
8588 ScreenToClient(s_textArea, &pt); | 8589 ScreenToClient(s_textArea, &pt); |
8589 | 8590 |
8590 if (abs(beval->x - pt.x) < 3 && abs(beval->y - pt.y) < 3) | 8591 if (abs(beval->x - pt.x) < 3 && abs(beval->y - pt.y) < 3) |
8592 { | |
8591 /* cursor is still here */ | 8593 /* cursor is still here */ |
8592 { | |
8593 gui_mch_disable_beval_area(cur_beval); | 8594 gui_mch_disable_beval_area(cur_beval); |
8594 beval->showState = ShS_SHOWING; | 8595 beval->showState = ShS_SHOWING; |
8595 make_tooltip(beval, (char *)mesg, pt); | 8596 make_tooltip(beval, (char *)mesg, pt); |
8596 } | 8597 } |
8597 // TRACE0("gui_mch_post_balloon }}}"); | 8598 // TRACE0("gui_mch_post_balloon }}}"); |