commit 5b2f01094be0eac0e7ca92765787072638fdbac9
parent 0822759ac3e0875eb74067d9b287558ee08e2a2d
Author: EinfachToll <istjanichtzufassen@googlemail.de>
Date: Mon, 22 Jul 2013 10:33:32 +0200
normal behavior of i_<C-T> and i_<C-D> when not on list item
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git 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)