Indent after colon only if at end of line
because there are problems otherwise
This commit is contained in:
		| @@ -1313,13 +1313,13 @@ function! s:cr_on_empty_line(lnum, behavior) "{{{ | |||||||
|   if a:behavior == 2 || a:behavior == 3 |   if a:behavior == 2 || a:behavior == 3 | ||||||
|     call s:create_marker(a:lnum+1) |     call s:create_marker(a:lnum+1) | ||||||
|   endif |   endif | ||||||
| endfunction "}}} | endfunction "}}} | ||||||
|  |  | ||||||
| function! s:cr_on_list_item(lnum, insert_new_marker, not_at_eol) "{{{ | function! s:cr_on_list_item(lnum, insert_new_marker, not_at_eol) "{{{ | ||||||
|   if a:insert_new_marker |   if a:insert_new_marker | ||||||
|     "the ultimate feature of this script: make new marker on <CR> |     "the ultimate feature of this script: make new marker on <CR> | ||||||
|     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) | ||||||
|     "tiny sweet extra feature: indent next line if current line ends with : |     "tiny sweet extra feature: indent next line if current line ends with : | ||||||
|     if !a:not_at_eol && getline(a:lnum) =~ ':$' |     if !a:not_at_eol && getline(a:lnum) =~ ':$' | ||||||
| @@ -1361,7 +1361,7 @@ function! vimwiki#lst#kbd_cr(normal, just_mrkr) "{{{ | |||||||
|   endif |   endif | ||||||
|  |  | ||||||
|   if has_bp == 0 |   if has_bp == 0 | ||||||
|     call s:cr_on_empty_line(lnum, a:normal) |     call s:cr_on_empty_line(lnum, a:normal) | ||||||
|   endif |   endif | ||||||
|  |  | ||||||
|   if has_bp == 2 |   if has_bp == 2 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user