@@ -226,14 +226,14 @@ impl Completion {
226 match event {
226 match event {
227 PromptEvent::Abort => {}
227 PromptEvent::Abort => {}
228 PromptEvent::Update => {
228 PromptEvent::Update => {
229− // Update creates "ghost" transactiosn which are not send to the
229+ // Update creates "ghost" transactions which are not sent to the
230− // lsp server to avoid messing up rerequesting completions. Once a
230+ // lsp server to avoid messing up re-requesting completions. Once a
231− // completion has been selected (with) tab it's always accepted whenever anything
231+ // completion has been selected (with tab, c-n or c-p) it's always accepted whenever anything
232 // is typed. The only way to avoid that is to explicitly abort the completion
232 // is typed. The only way to avoid that is to explicitly abort the completion
233− // with esc/c-c. This will remove the "ghost" transaction.
233+ // with c-c. This will remove the "ghost" transaction.
235− // The ghost transaction is modeled with a transaction that is not send to the LS.
235+ // The ghost transaction is modeled with a transaction that is not sent to the LS.
236− // (apply_temporary) and a savepoint. It's extremly important this savepoint is restored
236+ // (apply_temporary) and a savepoint. It's extremely important this savepoint is restored
237 // (also without sending the transaction to the LS) *before any further transaction is applied*.
237 // (also without sending the transaction to the LS) *before any further transaction is applied*.
238 // Otherwise incremental sync breaks (since the state of the LS doesn't match the state the transaction
238 // Otherwise incremental sync breaks (since the state of the LS doesn't match the state the transaction
239 // is applied to).
239 // is applied to).
@@ -293,7 +293,7 @@ impl Completion {
293 changes: completion_changes(&transaction, trigger_offset),
293 changes: completion_changes(&transaction, trigger_offset),
296− // TOOD: add additional _edits to completion_changes?
296+ // TODO: add additional _edits to completion_changes?
297 if let Some(additional_edits) = item.item.additional_text_edits {
297 if let Some(additional_edits) = item.item.additional_text_edits {
298 if !additional_edits.is_empty() {
298 if !additional_edits.is_empty() {
299 let transaction = util::generate_transaction_from_edits(
299 let transaction = util::generate_transaction_from_edits(