From 4c6107da8fd6119ba1b2379cd2f68c8c7374e8d5 Mon Sep 17 00:00:00 2001 From: Thibault Polge Date: Wed, 17 Jul 2019 13:47:05 +0200 Subject: [PATCH] Don't run outline-level in the middle of a line (Fix #72) --- outshine.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/outshine.el b/outshine.el index b8c063d..c193e51 100644 --- a/outshine.el +++ b/outshine.el @@ -1767,7 +1767,7 @@ With a numeric prefix ARG, show all headlines up to that level." ((save-excursion (beginning-of-line) (looking-at outline-regexp)) - (max 1 (funcall outline-level))) + (max 1 (save-excursion (beginning-of-line) (funcall outline-level)))) (t 1)))) (outline-hide-sublevels toplevel)) (outshine--cycle-message "OVERVIEW")