Fixed bug in which no mark is active but previous marks would trigger preview on a region instead of the whole buffer. Possibly related to #26

This commit is contained in:
Carlo Sciolla 2016-10-14 00:20:25 +02:00
parent 4bdb8ebb92
commit ae0f58295c
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ Uses prefix (as PREFIX) to choose where to display it:
- 16 (when prefixing the command with C-u C-u) -> new frame. - 16 (when prefixing the command with C-u C-u) -> new frame.
- else -> new buffer" - else -> new buffer"
(interactive "p") (interactive "p")
(if (mark) (if mark-active
(plantuml-preview-region prefix) (plantuml-preview-region prefix)
(plantuml-preview-buffer prefix))) (plantuml-preview-buffer prefix)))