Skip to content

Commit

Permalink
Revert inline reply formatting.
Browse files Browse the repository at this point in the history
New version were causing problems with quote formatting
  • Loading branch information
zevlg committed Nov 16, 2023
1 parent 7068403 commit 08441b4
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions telega-ins.el
Original file line number Diff line number Diff line change
Expand Up @@ -2690,20 +2690,8 @@ ADDON-HEADER-INSERTER is passed directly to `telega-ins--message-header'."
(telega-ins--image avatar 2
:no-display-if (not telega-chat-show-avatars)))

;; NOTE: `line-prefix' applies only if inserting at the
;; beginning of the line, inline reply can be inserted in two
;; different ways:
;; 1. Following the avatar (no fwd info)
;; 2. At the beginning of the line
;;
;; We need `telega-current-column' to return correct values in
;; both cases
(if (bolp)
(telega-ins--line-wrap-prefix content-prefix
(telega-ins--msg-reply-inline msg))
(telega-ins--msg-reply-inline msg))

(telega-ins--line-wrap-prefix content-prefix
(telega-ins--msg-reply-inline msg)
(telega-ins--content msg)

(telega-ins-prefix "\n"
Expand Down

0 comments on commit 08441b4

Please sign in to comment.