Only add colon if prompt ends with word (#204)
Lets you use your own ending characters, instead of always adding ': '. Closes #203
This commit is contained in:
parent
2d05440ad2
commit
e49d6c2459
@ -92,7 +92,7 @@ function! s:process(string)
|
||||
let m = matchstr(a:string,nr2char(i).'.\{-\}\ze'.nr2char(i))
|
||||
if m != ''
|
||||
let m = substitute(strpart(m,1),'\r.*','','')
|
||||
let repl_{i} = input(substitute(m,':\s*$','','').': ')
|
||||
let repl_{i} = input(match(m,'\w\+$') >= 0 ? m.': ' : m)
|
||||
endif
|
||||
endfor
|
||||
let s = ""
|
||||
|
Loading…
Reference in New Issue
Block a user