Function: logview--character-back-checked

logview--character-back-checked is a byte-compiled function defined in logview.el.

Signature

(logview--character-back-checked POSITION)

Documentation

Return end of previous line.

This function assumes POSITION is at the beginning of a line. If this is the first line, don't change POSITION.

Source Code

;; Defined in /nix/store/3zkn9hgpv447zb8nrg55d9x2ynmmrk40-emacs-packages-deps/share/emacs/site-lisp/elpa/logview-20260218.2013/logview.el
;; The following (inlined) functions are needed when applying
;; 'invisible' property.  Generally we count entry from start of its
;; line to the start of next entry's line.  This works nice e.g. for
;; highlighting.  However, for hiding entries we need to take linefeed
;; that _preceeds_ the entry, otherwise ellipses show at line
;; beginnings, which is ugly and shifts actual buffer text.

(defsubst logview--character-back-checked (position)
  "Return end of previous line.
This function assumes POSITION is at the beginning of a line.  If
this is the first line, don't change POSITION."
  (if (> position (point-min))
      (1- position)
    (point-min)))