summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-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);
 }
 
n title='2019-12-31 18:20:15 -0500'>2019-12-31Refactor scoop formatters and group colored outputJune McEnroe 2019-12-31Add strftime format string optionJune McEnroe 2019-12-31Refactor binding in scoopJune McEnroe 2019-12-31Add option to group events by contextJune McEnroe 2019-12-31Add missing includeJune McEnroe 2019-12-31Use standout mode for highlightingJune McEnroe 2019-12-31Rewrite scoop(1) argument descriptionsJune McEnroe 2019-12-31Color both nicks in a changeJune McEnroe 2019-12-31Implement nick-colored outputJune McEnroe 2019-12-31Only enable highlighting on terminal outputJune McEnroe 2019-12-31Set up pager pipeJune McEnroe 2019-12-30Normalize date inputJune McEnroe 2019-12-30Add initial rough version of scoopJune McEnroe 2019-12-30Join with USING wherever possibleJune McEnroe 2019-12-30Add -D flag to prospective scoop manualJune McEnroe 2019-12-30Order results by ID in outer query in litterboxJune McEnroe 2019-12-30Use X macro for Type enumJune McEnroe 2019-12-30Remove scoop -ABCJune McEnroe 2019-12-30Add limit option for litterbox's search query interfaceJune McEnroe