Insert completion at each cursor
tweak style
Merge remote-tracking branch 'remotes/pull/1587'
fix getAllRanges in singleSelect mode