From 32455a71d45ad329a9f5d6b523e23f82e6cb73e1 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Sun, 7 Jul 2024 17:50:35 +0200 Subject: Make backspace slightly less nonsensical --- japanese.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() " : *discard* completion and close completion menu (|complete_CTRL-E|) - return (pumvisible() ? "\" : '') .. "\" + " TODO: How to restore the original un-completed text? Sometimes keeps + " it, sometimes it doesn't. + return (pumvisible() ? "\" : "\") endfunction function s:handle_hiragana() -- cgit v1.2.3-70-g09d2