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

Commit18f485d

Browse files
committed
Copilot.vim 1.48.0
1 parent7167958 commit18f485d

File tree

8 files changed

+413
-420
lines changed

8 files changed

+413
-420
lines changed

‎README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,28 @@ request access from your enterprise admin.
2222

2323
2. Install[Node.js][].
2424

25-
3. Install`github/copilot.vim` using vim-plug,packer.nvim, or any other
25+
3. Install`github/copilot.vim` using vim-plug,lazy.nvim, or any other
2626
plugin manager. Or to install manually, run one of the following
2727
commands:
2828

2929
* Vim, Linux/macOS:
3030

31-
git clone https://github.com/github/copilot.vim.git \
31+
git clone--depth=1https://github.com/github/copilot.vim.git \
3232
~/.vim/pack/github/start/copilot.vim
3333

3434
* Neovim, Linux/macOS:
3535

36-
git clone https://github.com/github/copilot.vim.git \
36+
git clone--depth=1https://github.com/github/copilot.vim.git \
3737
~/.config/nvim/pack/github/start/copilot.vim
3838

3939
* Vim, Windows (PowerShell command):
4040

41-
git clone https://github.com/github/copilot.vim.git `
41+
git clone--depth=1https://github.com/github/copilot.vim.git `
4242
$HOME/vimfiles/pack/github/start/copilot.vim
4343

4444
* Neovim, Windows (PowerShell command):
4545

46-
git clone https://github.com/github/copilot.vim.git `
46+
git clone--depth=1https://github.com/github/copilot.vim.git `
4747
$HOME/AppData/Local/nvim/pack/github/start/copilot.vim
4848

4949
4. Start Vim/Neovim and invoke`:Copilot setup`.

‎autoload/copilot.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ function! s:SuggestionTextWithAdjustments() abort
203203
letline=getline('.')
204204
let offset=col('.')-1
205205
let byte_offset=copilot#util#UTF16ToByteIdx(line, choice.range.start.character)
206-
let choice_text=strpart(line,0, byte_offset) .substitute(choice.insertText,"\n*$",'','')
206+
let choice_text=strpart(line,0, byte_offset) .
207+
\substitute(substitute(choice.insertText,'\r\n\=','\n','g'),'\n*$','','')
207208
let typed=strpart(line,0, offset)
208209
let end_offset=copilot#util#UTF16ToByteIdx(line, choice.range.end.character)
209210
if end_offset <0

‎autoload/copilot/panel.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function! copilot#panel#Accept(...) abort
8484
ifgetbufline(state.bufnr, lnum)!=# [state.line]
8585
return'echoerr "Buffer has changed since synthesizing completion"'
8686
endif
87-
letlines=split(item.insertText,"\n",1)
87+
letlines=split(item.insertText,'\r\n\=\|\n',1)
8888
let old_first=getbufline(state.bufnr, item.range.start.line+1)[0]
8989
let byte_offset_start=copilot#util#UTF16ToByteIdx(old_first, item.range.start.character)
9090
letlines[0]=strpart(old_first,0, byte_offset_start) .lines[0]

‎autoload/copilot/version.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
function!copilot#version#String()abort
2-
return'1.47.0'
2+
return'1.48.0'
33
endfunction

‎dist/main.js

Lines changed: 401 additions & 409 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎dist/main.js.map

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
-338 KB
Binary file not shown.
-710 KB
Binary file not shown.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp