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

Commit e394d66

Browse files
committed
use robust operator !=# instead of !=
1 parent b283a08 commit e394d66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎autoload/gitbranch.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
" Filename: autoload/gitbranch.vim
33
" Author: itchyny
44
" License: MIT License
5-
" Last Change: 2015/02/20 21:00:53.
5+
" Last Change: 2015/02/26 00:34:03.
66
" =============================================================================
77

88
let s:save_cpo = &cpo
@@ -26,7 +26,7 @@ endfunction
2626
function! gitbranch#dir(path) abort
2727
let path = a:path
2828
let prev = ''
29-
while path != prev
29+
while path !=# prev
3030
let dir = path . '/.git'
3131
let type = getftype(dir)
3232
if type ==# 'dir' && isdirectory(dir.'/objects') && isdirectory(dir.'/refs') && getfsize(dir.'/HEAD') > 10

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /