Added an on-exit hook for autocmd
improved mode-switching autocmd hook logic fixed escaping logic in single quote expansion
This commit is contained in:
@@ -1070,6 +1070,14 @@ pub fn unescape_str(raw: &str) -> String {
|
||||
result.push(markers::SNG_QUOTE);
|
||||
while let Some(q_ch) = chars.next() {
|
||||
match q_ch {
|
||||
'\\' => {
|
||||
if chars.peek() == Some(&'\'') {
|
||||
result.push('\'');
|
||||
chars.next();
|
||||
} else {
|
||||
result.push('\\');
|
||||
}
|
||||
}
|
||||
'\'' => {
|
||||
result.push(markers::SNG_QUOTE);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user