Skip to content

Commit c013148

Browse files
committed
Copilot.vim 1.0.5
1 parent 6149088 commit c013148

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/copilot.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ function! s:commands.setup(opts) abort
588588

589589
let browser = copilot#Browser()
590590

591-
if empty(s:OAuthToken()) || empty(s:Auth()) || a:opts.bang
591+
if empty(s:OAuthToken()) || a:opts.bang
592592
let response = copilot#HttpRequest('https://github.com/login/device/code', {
593593
\ 'method': 'POST',
594594
\ 'headers': {'Accept': 'application/json'},
@@ -604,7 +604,7 @@ function! s:commands.setup(opts) abort
604604
set mouse=
605605
endif
606606
if len(browser)
607-
echo "Press ENTER to open GitHub your browser"
607+
echo "Press ENTER to open GitHub in your browser"
608608
let c = getchar()
609609
while c isnot# 13 && c isnot# 10 && c isnot# 0
610610
let c = getchar()

0 commit comments

Comments
 (0)