Skip to content

Commit c186172

Browse files
committed
Allow :Messages to take modifiers
1 parent cdb5981 commit c186172

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

autoload/scriptease.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ endfunction
318318

319319
" Section: :Messages
320320

321-
function! scriptease#messages_command(bang, count, arg) abort
321+
function! scriptease#messages_command(bang, count, arg, mods) abort
322322
let command = (a:count > -1 ? a:count : '') . 'messages'
323323
if !empty(a:arg)
324324
return command . ' ' . a:arg
@@ -400,7 +400,7 @@ function! scriptease#messages_command(bang, count, arg) abort
400400
if exists(':chistory')
401401
call setqflist([], 'r', {'title': ':Messages'})
402402
endif
403-
copen
403+
exec a:mods 'copen'
404404
$
405405
call search('^[^|]', 'bWc')
406406
return ''

plugin/scriptease.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ exe s:othercmd '-bar -count=0 Scriptnames'
5757
\ '<count>'
5858

5959
exe s:othercmd '-bar -bang -nargs=? -range=-1 Messages'
60-
\ 'exe scriptease#messages_command(<bang>0, <count>, <q-args>)'
60+
\ 'exe scriptease#messages_command(<bang>0, <count>, <q-args>, <q-mods>)'
6161

6262
command! -bang -bar -range=-1 -nargs=* -complete=customlist,scriptease#complete Runtime
6363
\ :exe scriptease#runtime_command('<bang>', <f-args>)

0 commit comments

Comments
 (0)