Skip to content

Commit

Permalink
Make rg-hidden-command-line-properties defun again
Browse files Browse the repository at this point in the history
This needs dynamic checking of rg-hide-command to allow it to be
changed after rg has been loaded.
  • Loading branch information
dajva committed Oct 10, 2020
1 parent 2c09809 commit 8a8ae4d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rg-result.el
Expand Up @@ -211,7 +211,7 @@ Becomes buffer local in `rg-mode' buffers.")
("^ *\\(?:.+?-\\)?[0-9]+-.*\n" (0 'rg-context-face))
("^.*rg \\(--color=always .*$\\)"
(0 rg-command-line-properties)
(1 rg-hidden-command-line-properties))
(1 (rg-hidden-command-line-properties)))
("^-\\*- mode: rg; default-directory: \"\\(.*\\)\" -\\*-$"
(1 rg-directory-properties))))

Expand Down Expand Up @@ -346,12 +346,12 @@ selected."
keymap ,map))
"Properties for graying out and keymap for hiding command line.")

(defvar rg-hidden-command-line-properties
(defun rg-hidden-command-line-properties ()
"Return properties of button-like ellipsis on part of rg command line."
(append
'(face nil rg-command-hidden-part t)
(when rg-hide-command
`(display ,rg-ellipsis)))
"Properties of button-like ellipsis on part of rg command line.")
`(display ,rg-ellipsis))))

(defun rg-toggle-command-hiding ()
"Toggle showing the hidden part of rg command line."
Expand Down

0 comments on commit 8a8ae4d

Please sign in to comment.