Skip to content

Commit

Permalink
lv.el (lv-message): Use setq-local for window-min-height
Browse files Browse the repository at this point in the history
  • Loading branch information
abo-abo committed Mar 20, 2015
1 parent eb181fd commit 8e4b1fa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lv.el
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@
(unless (string= (buffer-string) str)
(delete-region (point-min) (point-max))
(insert str)
(set (make-variable-buffer-local 'window-min-height)
n-lines)
(setq-local window-min-height n-lines)
(setq truncate-lines (> n-lines 1))
(fit-window-to-buffer nil nil 1))
(goto-char (point-min))
Expand Down

0 comments on commit 8e4b1fa

Please sign in to comment.