[go: up one dir, main page]

Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
ubaldot committed Apr 9, 2024
1 parent 46856ef commit b33212f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/condafuncs.vim
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ export def SetEnvVariablesWin(env: string, prefix: string)
# Refresh variables
g:conda_current_prefix = prefix

var user_autocmds = execute('autocmd User')
if stridx(user_autocmds, "CondaEnvActivated") != -1
if exists(#User#CondaEnvActivated)
doautocmd User CondaEnvActivated
endif
enddef
Expand Down Expand Up @@ -153,8 +152,7 @@ export def SetEnvVariables(env: string, prefix: string)

# Refresh variables
g:conda_current_prefix = prefix
var user_autocmds = execute('autocmd User')
if stridx(user_autocmds, "CondaEnvActivated") != -1
if exists(#User#CondaEnvActivated)
doautocmd User CondaEnvActivated
endif
enddef
Expand Down

0 comments on commit b33212f

Please sign in to comment.