From 5b2f01094be0eac0e7ca92765787072638fdbac9 Mon Sep 17 00:00:00 2001 From: EinfachToll Date: Mon, 22 Jul 2013 10:33:32 +0200 Subject: [PATCH] normal behavior of i_ and i_ when not on list item --- autoload/vimwiki/lst.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/autoload/vimwiki/lst.vim b/autoload/vimwiki/lst.vim index 5440e89..c8dc732 100644 --- a/autoload/vimwiki/lst.vim +++ b/autoload/vimwiki/lst.vim @@ -1020,7 +1020,10 @@ endfunction "}}} "changes lvl of lines in selection function! s:change_level(from_line, to_line, direction, plus_children) "{{{ let from_item = s:get_corresponding_item(a:from_line) - if from_item.type == 0 | return | endif + if from_item.type == 0 + execute a:from_line.','.a:to_line. (a:direction == 'increase' ? '>' : '<') + 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)