From 4265798d4b8e904374541d3b2b7e26e2266e6981 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Tue, 26 Mar 2019 21:10:45 +0100 Subject: [PATCH] style: rename inconsistent function names --- plugin/airline.vim | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugin/airline.vim b/plugin/airline.vim index f3ffb3c7..586ee00d 100644 --- a/plugin/airline.vim +++ b/plugin/airline.vim @@ -22,7 +22,7 @@ function! s:init() if s:theme_in_vimrc try if g:airline_theme is# 'random' - let g:airline_theme=s:RandomTheme() + let g:airline_theme=s:random_theme() endif let palette = g:airline#themes#{g:airline_theme}#palette catch @@ -176,7 +176,7 @@ function! s:airline_theme(...) try let theme = a:1 if theme is# 'random' - let theme = s:RandomTheme() + let theme = s:random_theme() endif call airline#switch_theme(theme) catch " discard error @@ -225,7 +225,7 @@ function! s:airline_extensions() endfor endfunction -function! s:Rand(max) abort +function! s:rand(max) abort if has("reltime") let timerstr=reltimestr(reltime()) let number=split(timerstr, '\.')[1]+0 @@ -239,9 +239,9 @@ function! s:Rand(max) abort return number % a:max endfunction -function! s:RandomTheme() abort +function! s:random_theme() abort let themes=airline#util#themes('') - return themes[s:Rand(len(themes))] + return themes[s:rand(len(themes))] endfunction command! -bar -nargs=? -complete=customlist,get_airline_themes AirlineTheme call airline_theme()