Refactor history management functions into their own file

This commit is contained in:
w0rp
2017-02-16 21:18:03 +00:00
parent 434ff01f59
commit 3a2286a1b8
4 changed files with 39 additions and 37 deletions

View File

@@ -169,8 +169,8 @@ Given testft.testft2 (Empty buffer with two filetypes):
Execute (ALEInfo should return command history):
let g:ale_buffer_info[bufnr('%')] = {
\ 'history': [
\ {'status': 'ran', 'job_id': 347, 'command': 'first command'},
\ {'status': 'ran', 'job_id': 347, 'command': ['/bin/bash', '\c', 'last command']},
\ {'status': 'started', 'job_id': 347, 'command': 'first command'},
\ {'status': 'started', 'job_id': 347, 'command': ['/bin/bash', '\c', 'last command']},
\ ],
\}
@@ -187,7 +187,7 @@ Execute (ALEInfo should return command history):
\ ' Enabled Linters: [''testlinter1'', ''testlinter2'']',
\ ' Linter Variables:',
\ g:globals_string . g:command_header,
\ '(ran) ''first command''',
\ '(ran) [''/bin/bash'', ''\c'', ''last command'']',
\ '(started) ''first command''',
\ '(started) [''/bin/bash'', ''\c'', ''last command'']',
\ ], "\n"),
\ g:output