added support for expand region and multiple cursors