Fix CR not working in one circumstance

This commit is contained in:
EinfachToll 2014-01-06 13:56:10 +01:00
parent 68ae7d57fb
commit 41d46eb42a

View File

@ -1295,6 +1295,8 @@ function! s:cr_on_empty_list_item(lnum, behavior) "{{{
"just make a new list item "just make a new list item
normal! gi  normal! gi 
call s:clone_marker_from_to(a:lnum, a:lnum+1) call s:clone_marker_from_to(a:lnum, a:lnum+1)
startinsert!
return
elseif a:behavior == 2 elseif a:behavior == 2
"insert new marker but remove marker in old line "insert new marker but remove marker in old line
call append(a:lnum-1, '') call append(a:lnum-1, '')