Fix indentation of dictionaries
This commit is contained in:
parent
b883ac6ee8
commit
2d036c0de8
20
tests/vim.py
20
tests/vim.py
|
@ -316,13 +316,13 @@ class _Buffer(object):
|
||||||
self.name = os.path.abspath(name) if name else None
|
self.name = os.path.abspath(name) if name else None
|
||||||
_buf_scopes[bufnr] = {}
|
_buf_scopes[bufnr] = {}
|
||||||
_buf_options[bufnr] = {
|
_buf_options[bufnr] = {
|
||||||
'modified': 0,
|
'modified': 0,
|
||||||
'readonly': 0,
|
'readonly': 0,
|
||||||
'fileformat': 'unix',
|
'fileformat': 'unix',
|
||||||
'filetype': '',
|
'filetype': '',
|
||||||
'buftype': '',
|
'buftype': '',
|
||||||
'fileencoding': 'utf-8',
|
'fileencoding': 'utf-8',
|
||||||
}
|
}
|
||||||
_buf_lines[bufnr] = ['']
|
_buf_lines[bufnr] = ['']
|
||||||
from copy import copy
|
from copy import copy
|
||||||
_undostate[bufnr] = [copy(_buf_lines[bufnr])]
|
_undostate[bufnr] = [copy(_buf_lines[bufnr])]
|
||||||
|
@ -393,9 +393,9 @@ def _init():
|
||||||
@_vim
|
@_vim
|
||||||
def _get_segment_info():
|
def _get_segment_info():
|
||||||
mode_translations = {
|
mode_translations = {
|
||||||
chr(ord('V') - 0x40): '^V',
|
chr(ord('V') - 0x40): '^V',
|
||||||
chr(ord('S') - 0x40): '^S',
|
chr(ord('S') - 0x40): '^S',
|
||||||
}
|
}
|
||||||
mode = _mode
|
mode = _mode
|
||||||
mode = mode_translations.get(mode, mode)
|
mode = mode_translations.get(mode, mode)
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in New Issue