]> git.lizzy.rs Git - rust.git/commit
Strip completion prefix of what has already been typed
authorNick Spain <nicholas.spain@stileeducation.com>
Fri, 1 Jan 2021 00:17:15 +0000 (11:17 +1100)
committerNick Spain <nicholas.spain@stileeducation.com>
Fri, 1 Jan 2021 00:17:15 +0000 (11:17 +1100)
commit3d95c665561709f4017f28b2fb00a0bfb4661887
tree5fea5dbd1150f99c2d0bf07258131fc4e5600eec
parent49eeeb61ae309a245de2f9bf65ffb0ea9576ba6c
Strip completion prefix of what has already been typed

Per Veykril's suggestion, this removes the need to repeat the completion text twice. It also handles the completion
in a more general case.
crates/completion/src/completions/record.rs