diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2021-06-05 23:42:03 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2021-06-08 18:39:16 +0200 |
commit | 4686d184967c0c747777c8edcc6b00dc023b8aa9 (patch) | |
tree | b3775d06e14450117c4c17b85e87fa635a02c689 /src/interface-curses | |
parent | 9618aadc5e31c688247f57ac55fe4e97a440f5c3 (diff) | |
download | sciteco-4686d184967c0c747777c8edcc6b00dc023b8aa9.tar.gz |
Windows: normalize $COMSPEC
* Environment variables are case insensitive on Windows
while SciTECO variables are case sensitive.
We must therefore make sure that we first unset any $COMSPEC or $ComSpec
from the environment before resetting it, thereby fixing its case.
* Fixes command execution via <EC> on systems where the variable
was not called $ComSpec.
Diffstat (limited to 'src/interface-curses')
-rw-r--r-- | src/interface-curses/interface.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/interface-curses/interface.c b/src/interface-curses/interface.c index 821581b..0c059ba 100644 --- a/src/interface-curses/interface.c +++ b/src/interface-curses/interface.c @@ -30,6 +30,11 @@ #ifdef HAVE_WINDOWS_H #define WIN32_LEAN_AND_MEAN #include <windows.h> + +/* + * Some macros in wincon.h interfere with our code. + */ +#undef MOUSE_MOVED #endif #ifdef EMSCRIPTEN |