aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2024-07-07 17:50:35 +0200
committerTom Smeding <tom@tomsmeding.com>2024-07-07 17:50:35 +0200
commit32455a71d45ad329a9f5d6b523e23f82e6cb73e1 (patch)
treedad6fad956f0ae71501ff89149dced36661a85b6
parentb8d7b530070d45482756a27be367bef5c1b735e0 (diff)
Make backspace slightly less nonsensical
-rw-r--r--japanese.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/japanese.vim b/japanese.vim
index b2ed95c..ef80960 100644
--- a/japanese.vim
+++ b/japanese.vim
@@ -90,6 +90,7 @@ let s:cur_region = v:null
" Set when starting completion, undefined at other times (may not be reset to
" v:null).
+" TODO: unused
let s:completion_orig_text = v:null
@@ -471,7 +472,9 @@ endfunction
function s:handle_backspace_expr()
" <C-e>: *discard* completion and close completion menu (|complete_CTRL-E|)
- return (pumvisible() ? "\<C-e>" : '') .. "\<BS>"
+ " TODO: How to restore the original un-completed text? Sometimes <C-e> keeps
+ " it, sometimes it doesn't.
+ return (pumvisible() ? "\<C-e>" : "\<BS>")
endfunction
function s:handle_hiragana()