Always use dot operator to concatenate strings
Vim automatically adds a space between strings when concatenating them without the dot operator. This is not obvious so we always use the dot operator. Minor coding style changes when writing statements on multiple lines to be more consistent.
This commit is contained in:
parent
c394895c4e
commit
c67c581d81
@ -438,8 +438,8 @@ function! s:DisableOnLargeFile( filename )
|
||||
let threshold = g:ycm_disable_for_files_larger_than_kb * 1024
|
||||
|
||||
if threshold > 0 && getfsize( a:filename ) > threshold
|
||||
exec s:python_command "vimsupport.PostVimMessage("
|
||||
\ "'YouCompleteMe is disabled in this buffer;"
|
||||
exec s:python_command "vimsupport.PostVimMessage(" .
|
||||
\ "'YouCompleteMe is disabled in this buffer; " .
|
||||
\ "the file exceeded the max size (see YCM options).' )"
|
||||
let b:ycm_largefile = 1
|
||||
endif
|
||||
@ -498,7 +498,7 @@ function! s:OnBufferUnload()
|
||||
endif
|
||||
|
||||
let deleted_buffer_file = expand( '<afile>:p' )
|
||||
exec s:python_command "ycm_state.OnBufferUnload("
|
||||
exec s:python_command "ycm_state.OnBufferUnload(" .
|
||||
\ "vim.eval( 'deleted_buffer_file' ) )"
|
||||
endfunction
|
||||
|
||||
@ -757,7 +757,7 @@ function! youcompleteme#OmniComplete( findstart, base )
|
||||
return -2
|
||||
endif
|
||||
let s:omnifunc_mode = 1
|
||||
exec s:python_command "ycm_state.CreateCompletionRequest("
|
||||
exec s:python_command "ycm_state.CreateCompletionRequest(" .
|
||||
\ "force_semantic = True )"
|
||||
return s:Pyeval( 'base.CompletionStartColumn()' )
|
||||
else
|
||||
@ -813,14 +813,14 @@ function! s:CompleterCommand(...)
|
||||
let arguments = arguments[1:]
|
||||
endif
|
||||
|
||||
exec s:python_command "ycm_state.SendCommandRequest("
|
||||
exec s:python_command "ycm_state.SendCommandRequest(" .
|
||||
\ "vim.eval( 'l:arguments' ), vim.eval( 'l:completer' ) )"
|
||||
endfunction
|
||||
|
||||
|
||||
function! youcompleteme#OpenGoToList()
|
||||
exec s:python_command "vimsupport.PostVimMessage("
|
||||
\ "'WARNING: youcompleteme#OpenGoToList function is deprecated."
|
||||
exec s:python_command "vimsupport.PostVimMessage(" .
|
||||
\ "'WARNING: youcompleteme#OpenGoToList function is deprecated. " .
|
||||
\ "Do NOT use it.' )"
|
||||
exec s:python_command "vimsupport.OpenQuickFixList( True, True )"
|
||||
endfunction
|
||||
@ -838,8 +838,8 @@ endfunction
|
||||
|
||||
function! s:ForceCompile()
|
||||
if !s:Pyeval( 'ycm_state.NativeFiletypeCompletionUsable()' )
|
||||
echom "Native filetype completion not supported for current file, "
|
||||
\ . "cannot force recompilation."
|
||||
echom "Native filetype completion not supported for current file, " .
|
||||
\ "cannot force recompilation."
|
||||
return 0
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user