mirror of
https://github.com/powerline/powerline.git
synced 2025-07-25 23:05:32 +02:00
Fix whitespace issues so pyflakes doesn't complain
This commit is contained in:
parent
0f6d24b1e8
commit
4cb0559be4
@ -43,8 +43,10 @@ if hasattr(vim, 'bindeval'):
|
||||
vim_globals[var] = val
|
||||
else:
|
||||
import json
|
||||
|
||||
class VimFunc(object):
|
||||
__slots__ = ('f', 'rettype')
|
||||
|
||||
def __init__(self, f, rettype=None):
|
||||
self.f = f
|
||||
self.rettype = rettype
|
||||
@ -57,7 +59,7 @@ else:
|
||||
|
||||
get_vim_func = VimFunc
|
||||
|
||||
def set_global_var(var, val):
|
||||
def set_global_var(var, val): # NOQA
|
||||
vim.command('let g:{0}={1}'.format(var, json.dumps(val)))
|
||||
|
||||
vim_funcs = {
|
||||
@ -72,6 +74,7 @@ vim_funcs = {
|
||||
'hlexists': get_vim_func('hlexists', rettype=int),
|
||||
}
|
||||
|
||||
|
||||
def statusline():
|
||||
winwidth = vim_funcs['winwidth'](0)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user