Jason Gedge 860c2a606d
More bug fixes for completions (#2476)
* Use the cursor position for the span when between locations.

This fixes a bug where completing

    ls <TAB>

would result in replacing the entire line.

* Revert to the default update implementation.

Replacing the length of the elected value was intended to do replacement when
one moves inside a quote. The problem is that a long elected suggestion could
replace bits of a pipeline that are after the cursor. For example:

    ls <TAB> | get name | str collect
2020-09-01 16:10:46 +12:00
..
2020-09-01 14:52:55 +12:00
2020-08-27 06:28:18 -05:00
2020-08-30 16:55:33 +12:00
2020-07-18 13:59:23 +12:00
2020-08-18 19:00:02 +12:00
2020-08-27 06:28:18 -05:00
2020-08-27 06:28:18 -05:00
2020-08-27 06:28:18 -05:00
2020-08-22 05:51:29 +12:00
2020-06-20 15:41:53 +12:00
2020-08-27 06:28:18 -05:00
2020-08-27 06:28:18 -05:00
2020-08-18 19:00:02 +12:00
2020-05-18 05:48:57 +12:00
2020-08-18 19:00:02 +12:00