Skip to content

Commit

Permalink
Skipping history -r under zsh to avoid printing whole history after…
Browse files Browse the repository at this point in the history
… a command delete which resolves #248 and resolves #386
  • Loading branch information
dvorka committed Jun 26, 2021
1 parent 1d82a22 commit 7d984e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hstr.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@

// major.minor.revision
static const char* VERSION_STRING=
"hstr version \"2.3.0\" (2020-11-19T07:41:00)"
"hstr version \"2.4.0\" (2021-06-25T08:30:00)"
"\n";

static const char* HSTR_VIEW_LABELS[]={
Expand Down
2 changes: 1 addition & 1 deletion src/hstr_history.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ int history_mgmt_remove_from_ranked(char *cmd, HistoryItems *history) {

void history_mgmt_flush(void)
{
if(dirty) {
if(dirty && !isZshParentShell()) {
fill_terminal_input("history -r\n", false);
}
}

0 comments on commit 7d984e4

Please sign in to comment.