about summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2013-08-08 19:48:11 +0100
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2013-08-08 19:48:11 +0100
commit0b185e3dcd7348045787b972a80d62da4ca0c79f (patch)
treed6a02419c2b0b8307897c00357b21efaae2e3d62 /Src/Zle
parent180c4c049c60c963378da8f9582937eb1682870e (diff)
downloadzsh-0b185e3dcd7348045787b972a80d62da4ca0c79f.tar.gz
zsh-0b185e3dcd7348045787b972a80d62da4ca0c79f.tar.xz
zsh-0b185e3dcd7348045787b972a80d62da4ca0c79f.zip
users/17908: Keep history line in sync between ZLE and shell.
Update ZLE version if history is read, pushed or popped with ZLE active
Diffstat (limited to 'Src/Zle')
-rw-r--r--Src/Zle/zle_main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c
index a1d54dd2b..756ff111a 100644
--- a/Src/Zle/zle_main.c
+++ b/Src/Zle/zle_main.c
@@ -1934,6 +1934,13 @@ zle_main_entry(int cmd, va_list ap)
 	break;
     }
 
+    case ZLE_CMD_SET_HIST_LINE:
+    {
+	histline = va_arg(ap, zlong);
+
+	break;
+    }
+
     default:
 #ifdef DEBUG
 	    dputs("Bad command %d in zle_main_entry", cmd);