Fix a bug that the bitmap is not cleared when a buffer is reverted.

master
Kouhei Yanagita 12 years ago
parent de7e7a32a5
commit 0ef000bac7
  1. 2
      fringe-current-line.el

@ -82,11 +82,13 @@
(setq fcl-fringe-overlay nil)))
(defun fringe-current-line-mode-on ()
(add-hook 'pre-command-hook 'fcl-clear-fringe-bitmap)
(add-hook 'post-command-hook 'fcl-display-fringe-bitmap-at-current-line nil t)
)
(defun fringe-current-line-mode-off ()
(fcl-clear-fringe-bitmap)
(remove-hook 'pre-command-hook 'fcl-clear-fringe-bitmap t)
(remove-hook 'post-command-hook 'fcl-display-fringe-bitmap-at-current-line t)
)

Loading…
Cancel
Save