Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
Changed some tabs into spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
adaszko committed Mar 4, 2013
1 parent 9ea448e commit 49779e3
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions autoload/getline.vim
Original file line number Diff line number Diff line change
Expand Up @@ -27,33 +27,33 @@ function! getline#GetLine(prompt, get_status) " {{{
echon "\r" . strpart(displayed, 0, strlen(a:prompt) + strlen(line))

while 1
let c = getchar()
if c == 27 " escape
return ""
let c = getchar()
if c == 27 " escape
return ""
call s:ClearLine(displayed)
endif
endif

if type(c) == type(0)
if c == 13 " enter
break
if type(c) == type(0)
if c == 13 " enter
break
elseif c == 21 " ^U
let line = ""
elseif c == 23 " ^W
let line = s:WithoutLastWord(line)
else
let line .= nr2char(c)
endif
elseif type(c) == type("")
if c == "\x80kb" " backspace
" Remove last character of input
if empty(line)
elseif c == 23 " ^W
let line = s:WithoutLastWord(line)
else
let line .= nr2char(c)
endif
elseif type(c) == type("")
if c == "\x80kb" " backspace
" Remove last character of input
if empty(line)
call s:ClearLine(displayed)
return ""
else
let line = strpart(line, 0, strlen(line)-1)
endif
endif
endif
return ""
else
let line = strpart(line, 0, strlen(line)-1)
endif
endif
endif

call s:ClearLine(displayed)
let status = call(a:get_status, [line])
Expand Down

0 comments on commit 49779e3

Please sign in to comment.