Change reported version to >= 4000 so that vim autodetects SGR mouse support correctly
This commit is contained in:
parent
bd75fa6ed3
commit
01d0e7474f
1 changed files with 3 additions and 1 deletions
4
setup.py
4
setup.py
|
|
@ -131,7 +131,9 @@ def init_env(debug=False, sanitize=False, native_optimizations=True):
|
|||
ldflags += shlex.split(os.environ.get('LDFLAGS', ''))
|
||||
|
||||
cflags.append('-pthread')
|
||||
cflags.append('-DPRIMARY_VERSION={}'.format(version[0]))
|
||||
# We add 4000 to the primary version because vim turns on SGR mouse mode
|
||||
# automatically if this version is high enough
|
||||
cflags.append('-DPRIMARY_VERSION={}'.format(version[0] + 4000))
|
||||
cflags.append('-DSECONDARY_VERSION={}'.format(version[1]))
|
||||
if not is_travis and not isosx and subprocess.Popen(
|
||||
[PKGCONFIG, 'glew', '--atleast-version=2']
|
||||
|
|
|
|||
Loading…
Reference in a new issue