Skip to content

Commit

Permalink
version 8.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cosminadrianpopescu committed Sep 18, 2018
1 parent 73873d1 commit d9f085c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion autoload/sw/report.vim
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function! sw#report#profile_changed(args)
let s:in_event = 1
let profiles = sw#cache_get('profiles')
let profile = a:args['profile']
if has_key(profiles[profile]['props'], 'report') && profiles[profile]['props']['report'] == 'true'
if has_key(profiles, profile) && has_key(profiles[profile]['props'], 'report') && profiles[profile]['props']['report'] == 'true'
call sw#report#get(profile)
endif
let s:in_event = 0
Expand Down
3 changes: 2 additions & 1 deletion autoload/sw/server.vim
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ function! s:try_wbconnect_extract(sql)
let group = substitute(a:sql, pgroup, '\5', 'g')
endif

return {'profile': profile, 'group': group}
let _p = '\v;[ \t]*$'
return {'profile': substitute(profile, _p, '', 'g'), 'group': substitute(group, _p, '', 'g')}
endfunction

function! sw#server#execute_sql(sql, ...)
Expand Down

0 comments on commit d9f085c

Please sign in to comment.