From 0be8924759138452888019e95a2e555db4284807 Mon Sep 17 00:00:00 2001 From: EinfachToll Date: Tue, 29 Oct 2013 13:03:10 +0100 Subject: [PATCH] Insert new item at the right level on --- autoload/vimwiki/lst.vim | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/autoload/vimwiki/lst.vim b/autoload/vimwiki/lst.vim index adcfd4c..63789c0 100644 --- a/autoload/vimwiki/lst.vim +++ b/autoload/vimwiki/lst.vim @@ -1256,13 +1256,11 @@ function! s:cr_on_empty_list_item(lnum, behavior) "{{{ endfunction "}}} function! s:cr_on_empty_line(lnum, behavior) "{{{ + "inserting and deleting the x is necessary + "because otherwise the indent is lost + normal! gi x if a:behavior == 2 || a:behavior == 3 - normal! gi  call s:create_marker(a:lnum+1) - elseif a:behavior == 1 || a:behavior == 4 - "inserting and deleting the x is necessary - "because otherwise the indent is lost - normal! gi x endif endfunction "}}}