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

Commit51954a7

Browse files
authored
Fix broken peek state if :ContextPeek is called twice
1 parentc065414 commit51954a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎autoload/context.vim‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ endfunction
5151
function!context#peek()abort
5252
" enable and set the peek flag (to disable on next update)
5353
callcontext#enable('window')
54-
letw:context.peek=1
54+
" set the flag correctly in case this function was called twice in a row
55+
letw:context.peek=w:context.enabled
5556
endfunction
5657

5758
function!context#update(...)abort

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp