Permalink
Browse files

Changed some tabs into spaces

  • Loading branch information...
1 parent 9ea448e commit 49779e38c79656a6e1ddf157e236689205752254 @adaszko committed Mar 4, 2013
Showing with 22 additions and 22 deletions.
  1. +22 −22 autoload/getline.vim
View
@@ -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])

0 comments on commit 49779e3

Please sign in to comment.