Function: magit-back-to-indentation
magit-back-to-indentation is an autoloaded, interactive and
byte-compiled function defined in magit-extras.el.
Signature
(magit-back-to-indentation)
Documentation
Move point to the first non-whitespace character on this line.
In Magit diffs, also skip over - and + at the beginning of the line.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-extras.el
;;;###autoload
(defun magit-back-to-indentation ()
"Move point to the first non-whitespace character on this line.
In Magit diffs, also skip over - and + at the beginning of the line."
(interactive "^")
(beginning-of-line 1)
(when (and (magit-section-match 'hunk)
(looking-at (if (oref (magit-current-section) combined)
"^ ?[-+]+"
"^[-+]")))
(goto-char (match-end 0)))
(skip-syntax-forward " " (line-end-position))
(backward-prefix-chars))