Skip to content

Commit adf218b

Browse files
L2U less hacky esc_sequence (#251)
Fix #204, #205 Supersedes #215
1 parent d589986 commit adf218b

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

autoload/LaTeXtoUnicode.vim

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,9 @@ function! s:L2U_SetupGlobal()
5959
let g:latex_to_unicode_suggestions = 0
6060
endif
6161

62-
" A hack to forcibly get out of completion mode: feed
63-
" this string with feedkeys()
64-
if has("win32") || has("win64")
65-
let s:l2u_esc_sequence = "\u0006"
66-
else
67-
let s:l2u_esc_sequence = "\u0091\b"
68-
end
62+
" Forcibly get out of completion mode: feed
63+
" this string with feedkeys(s:l2u_esc_sequence, 'n')
64+
let s:l2u_esc_sequence = " \b"
6965

7066
" Trigger for the previous mapping of <Tab>
7167
let s:l2u_fallback_trigger = "\u0091L2UFallbackTab"

0 commit comments

Comments
 (0)