8 Commits

Author SHA1 Message Date
Ingo Karkat d08482b29d BUG: Optional a:position argument to ingo#window#preview#SplitToPreview() is mistakenly truncated to [1:2]
Inline the l:cursor and l:bufnr variables; they are only used in the function call, anyway.
2017-05-26 17:52:11 +02:00
Ingo Karkat 5b4070fe8e 2017-05-26 17:52:11 +02:00
Ingo Karkat 65f2b7bb60 Support all imaginable argument variants of ingo#window#preview#OpenFilespec(), so that it can be used as a wrapper that encapsulates the g:previewwindowsplitmode config and the workaround for the absolute filespec due to the CWD 2017-05-26 17:31:50 +02:00
Ingo Karkat 3026af16e6 Add ingo#window#preview#OpenFilespec(), a wrapper around :pedit that performs the fnameescape() and obeys the custom g:previewwindowsplitmode 2017-05-26 17:30:32 +02:00
Ingo Karkat a285b30799 2017-05-26 17:30:32 +02:00
Ingo Karkat a3a6b01c2e ENH: Allow passing optional a:tabnr to ingo#window#preview#IsPreviewWindowVisible()
Factor out ingo#window#preview#OpenBuffer().
CHG: Change optional a:cursor argument of ingo#window#preview#SplitToPreview() from 4-tuple getpos()-style to [lnum, col]-style.
2017-05-26 17:30:25 +02:00
Ingo Karkat 7a10e9cc75 2017-05-26 17:29:43 +02:00
Ingo Karkat 06c092bdfd file creation 2017-05-26 17:03:17 +02:00