Commit 245be23c authored by Juanma Barranquero's avatar Juanma Barranquero

* linum.el (linum-delete-overlays, linum-update-window):

  Do not modify the right margin.  (Bug#3971)
parent 91fdbd6f
2009-09-22 Lennart Borgman <lennart.borgman@gmail.com>
* linum.el (linum-delete-overlays, linum-update-window):
Do not modify the right margin. (Bug#3971)
2009-09-21 Chong Yidong <cyd@stupidchicken.com>
* files.el (conf-mode-maybe, magic-fallback-mode-alist): Use
......
......@@ -113,7 +113,7 @@ and you have to scroll or press \\[recenter-top-bottom] to update the numbers."
(mapc #'delete-overlay linum-overlays)
(setq linum-overlays nil)
(dolist (w (get-buffer-window-list (current-buffer) nil t))
(set-window-margins w 0)))
(set-window-margins w 0 (cdr (window-margins w)))))
(defun linum-update-current ()
"Update line numbers for the current buffer."
......@@ -168,7 +168,7 @@ and you have to scroll or press \\[recenter-top-bottom] to update the numbers."
(overlay-put ov 'linum-str str))))
(forward-line)
(setq line (1+ line)))
(set-window-margins win width)))
(set-window-margins win width (cdr (window-margins win)))))
(defun linum-after-change (beg end len)
;; update overlays on deletions, and after newlines are inserted
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment