diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 2000-01-05 01:44:04 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 2000-01-05 01:44:04 +0000 |
commit | cf0e1c9dca0071716d1952a6b1a552724ea06470 (patch) | |
tree | a586517d1499768827493045794d6f2586c736d2 /Src/Zle/zle_hist.c | |
parent | 20adb2a9ea61b14d2795d33ce57a44d8cf5d3340 (diff) | |
download | zsh-cf0e1c9dca0071716d1952a6b1a552724ea06470.tar.gz zsh-cf0e1c9dca0071716d1952a6b1a552724ea06470.tar.xz zsh-cf0e1c9dca0071716d1952a6b1a552724ea06470.zip |
zsh-workers/9212
Diffstat (limited to 'Src/Zle/zle_hist.c')
-rw-r--r-- | Src/Zle/zle_hist.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/Src/Zle/zle_hist.c b/Src/Zle/zle_hist.c index d6dc2a794..b43f00bb3 100644 --- a/Src/Zle/zle_hist.c +++ b/Src/Zle/zle_hist.c @@ -30,12 +30,6 @@ #include "zle.mdh" #include "zle_hist.pro" -/* Are references to earlier history lines permitted? == 0 if * - * editing or reading a standalone line, such as in vared or select. */ - -/**/ -int histallowed; - /* Column position of vi ideal cursor. -1 if it is unknown -- most * * movements and changes do this. */ @@ -126,7 +120,7 @@ uplineorhistory(char **args) int m = zmult, ret; cs = ocs; - if (virangeflag || !histallowed) + if (virangeflag || !(zlereadflags & ZLRF_HISTORY)) return 1; zmult = n; ret = uphistory(args); @@ -156,7 +150,7 @@ uplineorsearch(char **args) int m = zmult, ret; cs = ocs; - if (virangeflag || !histallowed) + if (virangeflag || !(zlereadflags & ZLRF_HISTORY)) return 1; zmult = n; ret = historysearchbackward(args); @@ -210,7 +204,7 @@ downlineorhistory(char **args) int m = zmult, ret; cs = ocs; - if (virangeflag || !histallowed) + if (virangeflag || !(zlereadflags & ZLRF_HISTORY)) return 1; zmult = n; ret = downhistory(args); @@ -240,7 +234,7 @@ downlineorsearch(char **args) int m = zmult, ret; cs = ocs; - if (virangeflag || !histallowed) + if (virangeflag || !(zlereadflags & ZLRF_HISTORY)) return 1; zmult = n; ret = historysearchforward(args); |