Skip to content

Commit

Permalink
Fix minor bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
psibi committed Feb 20, 2022
1 parent 9182649 commit 144999e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Changelog.org
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
you can have a symbolic link inside nix's store ~/nix/store~.
- Minor cleanup in the way logging happens in the ~just-process~
buffer.
- Fix bug when process execution itself throws error.
- Migrate from the deprecated ~define-transient-command~

* 0.4

Expand Down
4 changes: 2 additions & 2 deletions justl.el
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ CMD is the just command as a list."
(goto-char (point-max))
(insert (format "\nFinished execution: exit-code %s" exit-status)))
(unless (eq 0 exit-status)
(let ((err (with-current-buffer (justl--process-error-buffer process-name)
(let ((err (with-current-buffer (get-buffer-create (justl--process-error-buffer process-name))
(buffer-string))))
(justl--append-to-process-buffer
(format "[%s] error: %s"
Expand Down Expand Up @@ -421,7 +421,7 @@ tweaked further by the user."
:argument-regexp "\\(--color \\(auto\\|always\\|never\\)\\)"
:choices '("auto" "always" "never"))

(define-transient-command justl-help-popup ()
(transient-define-prefix justl-help-popup ()
"Justl Menu"
[["Arguments"
("-s" "Clear shell arguments" "--clear-shell-args")
Expand Down

0 comments on commit 144999e

Please sign in to comment.