Skip to content

Commit

Permalink
fix: Fix virtual text position
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidz committed Apr 7, 2024
1 parent ab69a37 commit 9bc211e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/elin/interceptor/evaluate.clj
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@
(def set-eval-result-to-virtual-text-interceptor
{:name ::set-eval-result-to-virtual-text-interceptor
:kind e.c.interceptor/evaluate
:leave (-> (fn [{:component/keys [host] :keys [response]}]
:leave (-> (fn [{:component/keys [host] :keys [response options]}]
(when-let [v (:value response)]
(e.p.host/set-virtual-text host
(str v)
{:highlight "DiffText"})))
{:lnum (:line options)
:highlight "DiffText"})))
(ix/discard))})

(defn- up-until-top [zloc]
Expand Down

0 comments on commit 9bc211e

Please sign in to comment.