mirror of
https://github.com/Raimondi/delimitMate.git
synced 2026-10-04 19:28:55 +08:00
Consider non ascii chars for smart quote. Close #73.
This commit is contained in:
1 parent
54acd56b48
commit
e17f6cd23c
1 file changed
+1
-1
@@ -244,7 +244,7 @@ function! delimitMate#IsSmartQuote(char) "{{{
|
||||
endif
|
||||
let char_at = delimitMate#GetCharFromCursor(0)
|
||||
let char_before = delimitMate#GetCharFromCursor(-1)
|
||||
let word_before = char_before =~ '\w'
|
||||
let word_before = char_before =~ '\w\|[^[:punct:]]'
|
||||
let word_at = char_at =~ '\w'
|
||||
let escaped = delimitMate#CursorIdx() >= 1 && delimitMate#GetCharFromCursor(-1) == '\'
|
||||
let result = word_before || escaped || word_at
|
||||
|
||||
Reference in new issue
Block a user