Skip to content

fix vimlint error: #111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 7, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions autoload/vimshell/commands/iexe.vim
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ function! s:command.complete(args) "{{{
elseif vimshell#util#is_windows() &&
\ len(a:args) > 1 && a:args[1] == 'fakecygpty'
return vimshell#complete#helper#executables(
\ a:args[-1], g:vimshell_interactive_cygwin_path) :
\ a:args[-1], g:vimshell_interactive_cygwin_path)
endif

return vimshell#complete#helper#args(a:args[1], a:args[2:])
Expand Down Expand Up @@ -340,7 +340,6 @@ function! vimshell#commands#iexe#init(context, interactive, new_pos, old_pos, is
" Set send buffer.
call vimshell#interactive#set_send_buffer(bufnr('%'))

let bufnr = bufnr('%')
call vimshell#restore_pos(a:old_pos)

if get(a:context, 'is_single_command', 0)
Expand Down
1 change: 0 additions & 1 deletion autoload/vimshell/commands/popd.vim
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ function! s:command.execute(args, context) "{{{
return
endif

let cnt = 0
let arguments = join(a:args)
if arguments =~ '^\d\+$'
let pop = str2nr(arguments)
Expand Down
2 changes: 1 addition & 1 deletion autoload/vimshell/commands/view.vim
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function! s:command.execute(args, context) "{{{

if empty(args)
if a:context.fd.stdin == ''
vimshell#error_line(a:context.fd, 'view: Filename required.')
call vimshell#error_line(a:context.fd, 'view: Filename required.')
return
endif

Expand Down
1 change: 0 additions & 1 deletion autoload/vimshell/commands/whereis.vim
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ function! s:command.execute(args, context) "{{{
return
endif

let name = a:args[0]
for arg in vimproc#get_command_name(a:args[0], $PATH, -1)
call vimshell#print_line(a:context.fd, arg)
endfor
Expand Down
1 change: 0 additions & 1 deletion autoload/vimshell/complete.vim
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ function! vimshell#complete#gather_candidates(complete_str) "{{{
if empty(args)
let args = ['']
endif
let cur_keyword_str = args[-1]

let _ = (len(args) <= 1) ?
\ s:get_complete_commands(a:complete_str) :
Expand Down
1 change: 0 additions & 1 deletion autoload/vimshell/int_mappings.vim
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ function! s:restart_command() "{{{
endfunction"}}}
function! vimshell#int_mappings#command_complete() "{{{
let prompt = vimshell#interactive#get_prompt()
let command = b:interactive.command
let cur_text = vimshell#interactive#get_cur_text()
call setline('.', prompt)
let prompt_linenr = line('.')
Expand Down
2 changes: 1 addition & 1 deletion autoload/vimshell/mappings.vim
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ function! vimshell#mappings#execute_line(is_insert) "{{{
call vimshell#interactive#execute_pty_inout(a:is_insert)

try
let ret = vimshell#parser#execute_continuation(a:is_insert)
call vimshell#parser#execute_continuation(a:is_insert)
catch
" Error.
if v:exception !~# '^Vim\%((\a\+)\)\?:Interrupt'
Expand Down