Skip to content

Commit 4ac25b8

Browse files
authored
I had to [Enter] to conitunue from autoload
Maybe because the session opened message is too long, it interrupts the startup. Use g:session_verbose_messages to oppress it.
1 parent 9e9a608 commit 4ac25b8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

autoload/xolox/session.vim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,10 @@ function! xolox#session#open_cmd(name, bang, command) abort " {{{2
590590
call s:last_session_persist(name)
591591
call s:flush_session()
592592
call xolox#misc#timer#stop("session.vim %s: Opened %s %s session in %s.", g:xolox#session#version, session_type, string(name), starttime)
593-
call xolox#misc#msg#info("session.vim %s: Opened %s %s session from %s.", g:xolox#session#version, session_type, string(name), fnamemodify(path, ':~'))
593+
if g:session_verbose_messages
594+
" this may force user to press [Enter]
595+
call xolox#misc#msg#info("session.vim %s: Opened %s %s session from %s.", g:xolox#session#version, session_type, string(name), fnamemodify(path, ':~'))
596+
endif
594597
endif
595598
endif
596599
return 1

0 commit comments

Comments
 (0)