From ae0f58295cfb2a8d208d508299e3dfe804a64578 Mon Sep 17 00:00:00 2001 From: Carlo Sciolla Date: Fri, 14 Oct 2016 00:20:25 +0200 Subject: [PATCH] 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 --- plantuml-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plantuml-mode.el b/plantuml-mode.el index 7e512a8..687ed3a 100644 --- a/plantuml-mode.el +++ b/plantuml-mode.el @@ -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. - else -> new buffer" (interactive "p") - (if (mark) + (if mark-active (plantuml-preview-region prefix) (plantuml-preview-buffer prefix)))