normal behavior of i_<C-T> and i_<C-D> when not on list item
This commit is contained in:
parent
0822759ac3
commit
5b2f01094b
@ -1020,7 +1020,10 @@ endfunction "}}}
|
|||||||
"changes lvl of lines in selection
|
"changes lvl of lines in selection
|
||||||
function! s:change_level(from_line, to_line, direction, plus_children) "{{{
|
function! s:change_level(from_line, to_line, direction, plus_children) "{{{
|
||||||
let from_item = s:get_corresponding_item(a:from_line)
|
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:from_line == a:to_line
|
||||||
if a:plus_children
|
if a:plus_children
|
||||||
let to_line = s:get_last_line_of_item_incl_children(from_item)
|
let to_line = s:get_last_line_of_item_incl_children(from_item)
|
||||||
|
Loading…
Reference in New Issue
Block a user