aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cmdline.cpp
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2013-02-20 02:32:37 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2013-02-22 01:18:05 +0100
commited98ca730773737e0e87e8e0a7984151adbd7805 (patch)
tree4a37a0213d883dc76dd1a9d9d56bba541c738742 /src/cmdline.cpp
parent42e8056c59255e366d12a84642398cd47fde7278 (diff)
downloadsciteco-ed98ca730773737e0e87e8e0a7984151adbd7805.tar.gz
Windows (MinGW) compatibility fixes: suspending impossible and environment initialization revised
* g_get_environ() appears to be broken, at least in Wine and Win2k
Diffstat (limited to 'src/cmdline.cpp')
-rw-r--r--src/cmdline.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmdline.cpp b/src/cmdline.cpp
index f374efc..2a46a75 100644
--- a/src/cmdline.cpp
+++ b/src/cmdline.cpp
@@ -63,7 +63,7 @@ void
cmdline_keypress(gchar key)
{
gchar *old_cmdline = NULL;
- gint repl_pos;
+ gint repl_pos = 0;
const gchar *insert;
gchar *echo;
@@ -254,6 +254,7 @@ process_edit_cmd(gchar key)
}
break;
+#ifdef SIGTSTP
case CTL_KEY('Z'):
/*
* <CTL/Z> does not raise signal if handling of
@@ -264,6 +265,7 @@ process_edit_cmd(gchar key)
raise(SIGTSTP);
*insert = '\0';
break;
+#endif
}
return insert;