summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Src/Modules/curses.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index cdcd51886..4b42fcad8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2015-09-11  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
+	*  Sebastian Gniazdowski: 36489: Src/Modules/curses.c: fix bug
+	with hash table for colours.
+
 	* 36483: Functions/Zle/bracketed-paste-magic: use
 	[[:INCOMPLETE:]] to get rest of multibyte character.
 
diff --git a/Src/Modules/curses.c b/Src/Modules/curses.c
index 62dbd55ea..0054aef52 100644
--- a/Src/Modules/curses.c
+++ b/Src/Modules/curses.c
@@ -339,7 +339,7 @@ zcurses_colorget(const char *nam, char *colorpair)
 	return NULL;
 
     if (zc_color_phase==1 ||
-	!(cpn = (Colorpairnode) gethashnode(zcurses_colorpairs, colorpair))) {
+	!(cpn = (Colorpairnode) gethashnode2(zcurses_colorpairs, colorpair))) {
 	zc_color_phase = 2;
 	cp = ztrdup(colorpair);