Skip to content

Commit

Permalink
fix(text) : load history before the listing
Browse files Browse the repository at this point in the history
  • Loading branch information
LordPax committed Jan 4, 2025
1 parent be0a150 commit 1c6a8eb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [Unreleased]

### Fixed

* Load history bofore listing

## [0.7.0] - 2025-01-04

### Added
Expand Down
5 changes: 5 additions & 0 deletions service/text.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ func ParseTextCommand(command string) (bool, error) {
fmt.Printf(l.Get("text-history-selected"), values[1])
return true, nil
case "show":
textSdk := sdk.GetSdkText()
if err := textSdk.LoadHistory(); err != nil {
return true, err
}

if err := ListHistory(true); err != nil {
return true, err
}
Expand Down

0 comments on commit 1c6a8eb

Please sign in to comment.