mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Macro cleanup: FEAT_GUI_MAC
This commit is contained in:
parent
db9bcadb05
commit
9b58fc6986
@ -2105,10 +2105,6 @@ do_mouse (
|
|||||||
* NOTE: Ignore right button down and drag mouse events.
|
* NOTE: Ignore right button down and drag mouse events.
|
||||||
* Windows only shows the popup menu on the button up event.
|
* Windows only shows the popup menu on the button up event.
|
||||||
*/
|
*/
|
||||||
#if defined(FEAT_GUI_MAC)
|
|
||||||
if (!is_click)
|
|
||||||
return false;
|
|
||||||
#endif
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (which_button == MOUSE_LEFT
|
if (which_button == MOUSE_LEFT
|
||||||
|
@ -332,19 +332,15 @@ enum {
|
|||||||
/* Maximum number of bytes in a multi-byte character. It can be one 32-bit
|
/* Maximum number of bytes in a multi-byte character. It can be one 32-bit
|
||||||
* character of up to 6 bytes, or one 16-bit character of up to three bytes
|
* character of up to 6 bytes, or one 16-bit character of up to three bytes
|
||||||
* plus six following composing characters of three bytes each. */
|
* plus six following composing characters of three bytes each. */
|
||||||
# define MB_MAXBYTES 21
|
#define MB_MAXBYTES 21
|
||||||
|
|
||||||
/* This has to go after the include of proto.h, as proto/gui.pro declares
|
/* This has to go after the include of proto.h, as proto/gui.pro declares
|
||||||
* functions of these names. The declarations would break if the defines had
|
* functions of these names. The declarations would break if the defines had
|
||||||
* been seen at that stage. But it must be before globals.h, where error_ga
|
* been seen at that stage. But it must be before globals.h, where error_ga
|
||||||
* is declared. */
|
* is declared. */
|
||||||
#if !defined(FEAT_GUI_MAC)
|
#define mch_errmsg(str) fprintf(stderr, "%s", (str))
|
||||||
# define mch_errmsg(str) fprintf(stderr, "%s", (str))
|
#define display_errors() fflush(stderr)
|
||||||
# define display_errors() fflush(stderr)
|
#define mch_msg(str) printf("%s", (str))
|
||||||
# define mch_msg(str) printf("%s", (str))
|
|
||||||
#else
|
|
||||||
# define USE_MCH_ERRMSG
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "nvim/globals.h" /* global variables and messages */
|
#include "nvim/globals.h" /* global variables and messages */
|
||||||
#include "nvim/buffer_defs.h" /* buffer and windows */
|
#include "nvim/buffer_defs.h" /* buffer and windows */
|
||||||
|
Loading…
Reference in New Issue
Block a user