Mercurial > vim
diff src/evalfunc.c @ 16527:5412fcd03ecb v8.1.1267
patch 8.1.1267: cannot check if GPM mouse support is working
commit https://github.com/vim/vim/commit/4b8366b56edbf4f3efcaeedbaba491c49c5788ca
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat May 4 17:34:34 2019 +0200
patch 8.1.1267: cannot check if GPM mouse support is working
Problem: Cannot check if GPM mouse support is working.
Solution: Add the "mouse_gpm_enable" feature.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 04 May 2019 17:45:06 +0200 |
parents | 9484fc00ac6b |
children | 9e991ede1b59 |
line wrap: on
line diff
--- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -6810,6 +6810,10 @@ f_has(typval_T *argvars, typval_T *rettv else if (STRICMP(name, "netbeans_enabled") == 0) n = netbeans_active(); #endif +#ifdef FEAT_MOUSE_GPM + else if (STRICMP(name, "mouse_gpm_enabled") == 0) + n = gpm_enabled(); +#endif #if defined(FEAT_TERMINAL) && defined(MSWIN) else if (STRICMP(name, "terminal") == 0) n = terminal_enabled();