From ddab77bb8f2febf06cab014eefe9b3b787cb8e94 Mon Sep 17 00:00:00 2001 From: EinfachToll Date: Mon, 3 Mar 2014 09:15:38 +0100 Subject: [PATCH] Fix spontaneous change of list symbol --- autoload/vimwiki/lst.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autoload/vimwiki/lst.vim b/autoload/vimwiki/lst.vim index 350a116..86c9d74 100644 --- a/autoload/vimwiki/lst.vim +++ b/autoload/vimwiki/lst.vim @@ -993,6 +993,10 @@ function! s:change_level(from_line, to_line, direction, plus_children) "{{{ return endif + if a:direction == 'decrease' && s:get_level(from_item.lnum) == 0 + return + endif + if a:from_line == a:to_line if a:plus_children let to_line = s:get_last_line_of_item_incl_children(from_item)