Skip to content

Commit

Permalink
Merge pull request athensresearch#6 from sid597/sid-fix-indent
Browse files Browse the repository at this point in the history
Show cursor after indent
  • Loading branch information
neotyk authored Jun 30, 2021
2 parents 52441a2 + 59d238b commit 4e29b47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cljs/athens/events.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,8 @@
value)
tx (resolver/resolve-event-to-tx @db/dsdb indent-event)]
(js/console.debug ":indent tx:" (pr-str tx))
{:fx [[:dispatch-n [[:transact tx]]]]})
{:fx [[:dispatch [:transact tx]
:set-cursor-position [uid start end]]]})
{:fx [[:dispatch [:remote/indent (merge (select-keys args [:uid])
{:start start
:end end
Expand Down

0 comments on commit 4e29b47

Please sign in to comment.