From 8f3caefd123a523e227c39616fd16a89cb626d66 Mon Sep 17 00:00:00 2001 From: Olivia Date: Mon, 21 Jun 2021 17:51:52 +0200 Subject: [PATCH] Fix toggle bug --- CHANGELOG.md | 3 ++- autoload/autopairs/Variables.vim | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 931d6e9..b45a773 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,8 @@ * Better escape handing ([jiangmiao#325](https://github.com/jiangmiao/auto-pairs/issues/325)) * Typos in the help document * Update variable list in the help document -* Add a hepl document covering plugin interop for specific plugins +* Add a help document covering plugin interop for specific plugins +* Bug from beta11 breaking the autopairs toggle shortcut ## Added * `g:AutoPairsSearchEscape` diff --git a/autoload/autopairs/Variables.vim b/autoload/autopairs/Variables.vim index e26f340..8fefa9e 100644 --- a/autoload/autopairs/Variables.vim +++ b/autoload/autopairs/Variables.vim @@ -161,7 +161,7 @@ fun! autopairs#Variables#_InitBufferVariables() call s:define('b:AutoPairsMapSpace', g:AutoPairsMapSpace) call s:define('b:AutoPairsShortcutFastWrap', g:AutoPairsShortcutFastWrap) call s:define('b:AutoPairsShortcutBackInsert', g:AutoPairsShortcutBackInsert) - call s:define('b:AutoPairsShortcutToggle', g:AutoPairsShortcutBackInsert) + call s:define('b:AutoPairsShortcutToggle', g:AutoPairsShortcutToggle) call s:define('b:AutoPairsShortcutJump', g:AutoPairsShortcutJump) call s:define('b:AutoPairsShortcutToggleMultilineClose', g:AutoPairsShortcutToggleMultilineClose) endfun