Skip to content

Commit

Permalink
Convert <c-c> to <esc> in GetChar() function.
Browse files Browse the repository at this point in the history
  • Loading branch information
dstein64 committed Jan 2, 2021
1 parent 66865d2 commit 0e8f1b4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions autoload/win.vim
Original file line number Diff line number Diff line change
@@ -101,6 +101,11 @@ function! s:GetChar()
if type(l:char) ==# v:t_number
let l:char = nr2char(l:char)
endif
" On Cygwin, <c-c> does not raise "Vim:Interrupt", so it would still be
" <c-c> at this point. Convert to <esc>.
if l:char ==# "\<c-c>"
let l:char = "\<esc>"
endif
return l:char
endfunction

0 comments on commit 0e8f1b4

Please sign in to comment.