From 5c335b1d47d43efb9d38090415bfd508a14e2db7 Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Mon, 17 Feb 2014 20:58:24 +0900 Subject: [PATCH] Fix default_encoding error --- autoload/vimshell/interactive.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/autoload/vimshell/interactive.vim b/autoload/vimshell/interactive.vim index add23fac..f331ac68 100644 --- a/autoload/vimshell/interactive.vim +++ b/autoload/vimshell/interactive.vim @@ -1,7 +1,7 @@ "============================================================================= " FILE: interactive.vim " AUTHOR: Shougo Matsushita -" Last Modified: 21 Jan 2014. +" Last Modified: 17 Feb 2014. " License: MIT license {{{ " Permission is hereby granted, free of charge, to any person obtaining " a copy of this software and associated documentation files (the @@ -616,6 +616,10 @@ function! s:check_scrollback() "{{{ endfunction"}}} function! vimshell#interactive#get_default_encoding(commands) "{{{ + if empty(a:commands[0].args) + return '' + endif + let full_command = tolower( \ vimshell#helpers#get_command_path(a:commands[0].args[0])) let command = fnamemodify(full_command, ':t:r')