Skip to content

Commit

Permalink
Fix nasty bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rougier committed Dec 21, 2020
1 parent f0bd8cd commit 7afbc63
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nano-command.el
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ to the slave buffer header line and cursor stays on first line."
(let ((eol (save-excursion (goto-char (point-min)) (point-at-eol))))
(if (> (point) eol) (goto-char eol))))

(force-mode-line-update t))
;; Update slave header line
(with-current-buffer nano-command--slave
(force-mode-line-update nil)))


(defun nano-command--check-focus (&rest args)
"This function check if the maste buffer has focus.
Expand Down Expand Up @@ -140,7 +143,6 @@ If not, it closes nano command."
(let ((window-min-height 1)
(window-safe-min-height 1)
(window-resize-pixelwise t)
(split-window-keep-point t)
(split-window-keep-point t))
(with-selected-window (split-window-vertically -2)
(switch-to-buffer (get-buffer-create nano-command--master))
Expand Down

0 comments on commit 7afbc63

Please sign in to comment.