summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrcyeske <rcyeske>2005-01-15 09:06:32 +0000
committerrcyeske <rcyeske>2005-01-15 09:06:32 +0000
commitaddbe86bbd62c2731cdbc2dcb4d7eea98a74224d (patch)
tree17a59f30a5d8518f11d23b7ea55c675270fc236d
parent122905248ec7c0ffd0b26fb5f782dab3fef7b495 (diff)
downloadratpoison-addbe86bbd62c2731cdbc2dcb4d7eea98a74224d.zip
(saved_command): Only define whe HAVE_HISTORY is
defined.
-rw-r--r--ChangeLog5
-rw-r--r--src/editor.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c37574d..8607e63 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-01-15 Ryan Yeske <rcyeske@gmail.com>
+
+ * src/editor.c (saved_command): Only define whe HAVE_HISTORY is
+ defined.
+
2005-01-15 Shawn Betts <katia_dilkina@verizon.net>
* src/globals.h (RET_SUCCESS): set to 1
diff --git a/src/editor.c b/src/editor.c
index 6f312e0..1247e67 100644
--- a/src/editor.c
+++ b/src/editor.c
@@ -56,7 +56,9 @@ static edit_status editor_complete_next (rp_input_line *line);
static edit_status editor_insert (rp_input_line *line, char *keysym_buf);
+#ifdef HAVE_HISTORY
static char *saved_command = NULL;
+#endif
typedef struct edit_binding edit_binding;
@@ -466,8 +468,10 @@ editor_insert (rp_input_line *line, char *keysym_buf)
static edit_status
editor_enter (rp_input_line *line)
{
+#ifdef HAVE_HISTORY
int result;
char *expansion;
+#endif
line->buffer[line->length] = '\0';
#ifdef HAVE_HISTORY