Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5d14952

Browse files
committed
support max_height=1
1 parent108644e commit5d14952

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎autoload/context/util.vim‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,12 @@ function! context#util#filter(context, line_number, consider_height) abort
283283
let indent2=lines[-(max_height-1)/2][0].indent
284284
let ellipsis=repeat(c.char_ellipsis,max([indent2-indent,3]))
285285
let ellipsis_lines= [context#line#make_highlight(0,c.char_ellipsis,level,indent, ellipsis,'Comment')]
286-
callremove(lines, max_height/2, -(max_height+1)/2)
287-
callinsert(lines, ellipsis_lines, max_height/2)
286+
if max_height==1
287+
callremove(lines,0,-2)
288+
else
289+
callremove(lines, max_height/2, -(max_height+1)/2)
290+
callinsert(lines, ellipsis_lines, max_height/2)
291+
endif
288292
endif
289293

290294
return [lines, line_number]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp