jmickelin / vim-empty-lines-mode

Vim-like empty line indicator at end of files for Emacs.
GNU General Public License v3.0
10 stars 3 forks source link

Hook `window-configuration-change-hook' also #8

Open hchbaw opened 9 years ago

hchbaw commented 9 years ago

Changing the window size from the other window in which the vim-empty-lines-mode is not active, the indicators are not updated.

For example:

(save-window-excursion
  (delete-other-windows)
  (let ((b (generate-new-buffer "test-b"))
        (p (generate-new-buffer "test-p")))
    (unwind-protect
         (progn
           (switch-to-buffer b)
           (vim-empty-lines-mode 1)
           (pop-to-buffer p)
           (vim-empty-lines-mode -1)
           (shrink-window 10)
           (sit-for 3))
      (mapc 'kill-buffer `(,b ,p)))))

The indicators in the "test-b" buffer are not updated.