2
0
Fork 0
mirror of https://github.com/nushell/nushell synced 2025-02-21 00:18:35 +00:00
nushell/crates/nu-cli
Jason Gedge 860c2a606d
More bug fixes for completions ()
* 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
..
assets moved theme assets local to crate () 2020-08-11 13:57:03 -05:00
src More bug fixes for completions () 2020-09-01 16:10:46 +12:00
tests Create benign email test fixture () 2020-08-29 12:57:50 -04:00
build.rs Add wasm sample for CI () 2020-08-19 07:34:05 +12:00
Cargo.toml Add wasm sample for CI () 2020-08-19 07:34:05 +12:00