@@ -1143,7 +1143,7 @@ function! asyncrun#translate(program, command)
1143
1143
endif
1144
1144
let l: command = s: StringStrip (l: command )
1145
1145
let s: async_program_cmd = ' '
1146
- silent exec ' AsyncRun -program=parse @ ' . l: command
1146
+ silent exec ' AsyncRun -program=< parse> @ ' . l: command
1147
1147
let l: command = s: async_program_cmd
1148
1148
return l: command
1149
1149
endfunc
@@ -1869,9 +1869,13 @@ function! asyncrun#run(bang, opts, args, ...)
1869
1869
endif
1870
1870
1871
1871
" parse makeprg/grepprg and return
1872
- if l: opts .program == ' parse'
1872
+ if l: opts .program == ' < parse> '
1873
1873
let s: async_program_cmd = l: command
1874
1874
return s: async_program_cmd
1875
+ elseif l: opts .program == ' <display>'
1876
+ let l: opts .cmd = l: command
1877
+ echo l: opts
1878
+ return ' '
1875
1879
endif
1876
1880
1877
1881
" update marcros
@@ -1941,6 +1945,11 @@ function! asyncrun#run(bang, opts, args, ...)
1941
1945
let l: opts .errorformat = get (l: opts , ' errorformat' , &errorformat )
1942
1946
let s: async_scroll = (a: bang == ' !' )? 0 : 1
1943
1947
1948
+ " check scroll
1949
+ if has_key (l: opts , ' scroll' )
1950
+ let s: async_scroll = (l: opts .scroll == ' 0' )? 0 : 1
1951
+ endif
1952
+
1944
1953
" check if need to save
1945
1954
let l: save = get (l: opts , ' save' , ' ' )
1946
1955
0 commit comments