summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/1sh/histedit.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/bin/1sh/histedit.c b/bin/1sh/histedit.c
index 0d23e9aa..4c0821dd 100644
--- a/bin/1sh/histedit.c
+++ b/bin/1sh/histedit.c
@@ -68,7 +68,6 @@ History *hist;	/* history cookie */
 EditLine *el;	/* editline cookie */
 int displayhist;
 static FILE *el_in, *el_out, *el_err;
-static HistEvent he_saved;
 
 static void history_load(const char *hf);
 static void history_save(const char *hf);
@@ -185,8 +184,6 @@ history_load(const char *hf) {
 		return;
 	if (history(hist, &he, H_LOAD, ehf) == -1)
 		warning("%s: %s", he.str, ehf);
-	else
-		history(hist, &he_saved, H_FIRST);
 }
 
 
@@ -198,11 +195,7 @@ history_save(const char *hf) {
 	ehf = expandstr(hf);
 	if (ehf == NULL)
 		return;
-	if (he_saved.num == 0)
-		history(hist, &he_saved, H_LAST);
-	else
-		history(hist, &he_saved, H_NEXT_EVENT, he_saved.num + 1);
-	if (history(hist, &he, H_SAVE_INCR, ehf, he_saved.num) == -1)
+	if (history(hist, &he, H_SAVE, ehf) == -1)
 		warning("%s: %s", he.str, ehf);
 }
 
an title='2020-04-08 16:49:50 -0400'>2020-04-08Use a real IMAP parserJune McEnroe 2020-04-07Simplify mboxrd output 1.0p2June McEnroe 2020-04-06Don't bother generating real From linesJune McEnroe 2020-03-03Don't use $ inside $(()) 1.0p1June McEnroe 2020-03-03Use getoptsJune McEnroe 2020-01-28Call fopencookie with a+June McEnroe 2019-12-24Exit git-fetch-email on getopt failure 1.0June McEnroe 2019-12-23Export References headerJune McEnroe 2019-12-23Add (GNU/)Linux compatibilityJune McEnroe 2019-12-23Handle folded From headersJune McEnroe 2019-12-23Restrict search to plain-text messagesJune McEnroe 2019-12-23Properly support using drill rather than digJune McEnroe 2019-12-22Document dig requirement in imbox(1)June McEnroe 2019-12-22Add CAVEAT about expecting plain-textJune McEnroe 2019-12-22Quote user, pass and mailboxJune McEnroe 2019-12-22Use sequence numbers rather than UIDsJune McEnroe 2019-12-22Use EXAMINE rather than SELECTJune McEnroe 2019-12-22Export To and CC headersJune McEnroe 2019-12-22Add missing includeJune McEnroe 2019-12-22Export In-Reply-To headersJune McEnroe 2019-12-21Add git-fetch-email to READMEJune McEnroe 2019-12-21Clarify purpose in READMEJune McEnroe 2019-12-21Add READMEJune McEnroe 2019-12-21Add copyright header to git-fetch-emailJune McEnroe 2019-12-21Add git-fetch-email to SEE ALSO of imboxJune McEnroe 2019-12-21Add git-fetch-email wrapperJune McEnroe 2019-12-21Determine host by SRV lookupJune McEnroe 2019-12-21Clean up remaining codeJune McEnroe 2019-12-21Clean up mboxrd codeJune McEnroe 2019-12-21Convert CRLF to LFJune McEnroe 2019-12-21Implement -CFSTJune McEnroe 2019-12-21Rewrite aspirational manualJune McEnroe 2019-12-21Null-terminate read literalsJune McEnroe