1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 13:00:04 +08:00

Add ISSUE_TEMPLATE

This commit is contained in:
wsdjeg 2017-01-12 13:46:40 +08:00
parent 41de5e8d21
commit e999c43b91
2 changed files with 18 additions and 2 deletions

12
.github/ISSUE_TEMPLATE.md vendored Normal file
View File

@ -0,0 +1,12 @@
### Expected behavior, english is recommend
### Environment Information
- OS:
- vim version:
- neovim version:
### The reproduce ways from Vim starting (Required!)
### Output of the ":message" command, and ":echo SpaceVim#logger#viewLog()"

View File

@ -41,8 +41,12 @@ endfunction
function! SpaceVim#logger#viewLog(...) abort
let l = a:0 > 0 ? a:1 : 1
let logs = readfile(s:logger_file, '')
echo logs[0]
if filereadable(s:logger_file)
let logs = readfile(s:logger_file, '')
else
let logs = []
echom '[ SpaceVim ] : logger file ' . s:logger_file . ' does not exists!'
endif
return join(filter(logs, "v:val =~# '\[ SpaceVim \] \[\d\d\:\d\d\:\d\d\] \[" . s:levels[l] . "\]'"), "\n")
endfunction