mirror of
https://github.com/larstvei/Focus.git
synced 2024-11-26 11:38:32 +00:00
Move condition
This commit is contained in:
parent
f82be0af42
commit
af05a01667
15
focus.el
15
focus.el
@ -173,13 +173,14 @@ The timer calls `focus-read-only-hide-cursor' after
|
|||||||
"Restore original colors between LOW and HIGH.
|
"Restore original colors between LOW and HIGH.
|
||||||
|
|
||||||
Returns the list of added overlays."
|
Returns the list of added overlays."
|
||||||
(let* ((next (min high (or (next-property-change low) high)))
|
(when (< low high)
|
||||||
(face (get-text-property low 'face))
|
(let* ((next (min high (or (next-property-change low) high)))
|
||||||
(fg (focus-foreground-from-face face))
|
(face (get-text-property low 'face))
|
||||||
(restored-face (focus-make-focused-face fg))
|
(fg (focus-foreground-from-face face))
|
||||||
(o (make-overlay low next)))
|
(restored-face (focus-make-focused-face fg))
|
||||||
(overlay-put o 'face restored-face)
|
(o (make-overlay low next)))
|
||||||
(cons o (when (< low high) (focus-undim-area next high)))))
|
(overlay-put o 'face restored-face)
|
||||||
|
(cons o (focus-undim-area next high)))))
|
||||||
|
|
||||||
(defun focus-move-focus ()
|
(defun focus-move-focus ()
|
||||||
"Move the focused section according to `focus-bounds'.
|
"Move the focused section according to `focus-bounds'.
|
||||||
|
Loading…
Reference in New Issue
Block a user