Skip to content

Commit

Permalink
Merge pull request #490 from mishazharov/cargo-outdated-2
Browse files Browse the repository at this point in the history
[cargo outdated] Fix bug when only one crate needs updates
  • Loading branch information
brotzeit authored Jan 21, 2023
2 parents 7035fe3 + 672d413 commit 97d7cc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rustic-cargo.el
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ Execute process in PATH."
(lambda (arg)
(split-string arg "================" t "[\n\s]"))
(split-string (buffer-string) "\n\n" t))))
(if (= (length packages) 1)
(if (and (length packages) (= (length (car packages)) 1))
(setq packages (list (push "---" (car packages)))))
(rustic-cargo-outdated-generate-menu packages))
(pop-to-buffer buf))
Expand Down

0 comments on commit 97d7cc9

Please sign in to comment.