From 0113c56e537e0ebf5e41fadcc9fb52cb3af8e04a Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 8 Mar 2018 22:04:22 -0500 Subject: add note about apostrophes --- README.md | 4 +++- doc/autobrace.txt | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e73dc24..8cc7f24 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,9 @@ Specifically, it does these things: * Opening brace and quote characters (specifically, `(`, `[`, `{`, `'`, and `"`) are mapped to make them automatically insert their - corresponding closing character. + corresponding closing character. `'` is special-cased to not insert the + closing character when typed after a word character, to avoid triggering + when typing words with apostrophes. * Typing a closing brace or quote character while the next character past the cursor is that character will skip over it instead of inserting it. * Pressing when the next character is a closing brace will insert two diff --git a/doc/autobrace.txt b/doc/autobrace.txt index fbb1b2d..6d82da5 100644 --- a/doc/autobrace.txt +++ b/doc/autobrace.txt @@ -11,7 +11,9 @@ Specifically, it does these things: * Opening brace and quote characters (specifically, `(`, `[`, `{`, `'`, and `"`) are mapped to make them automatically insert their - corresponding closing character. + corresponding closing character. `'` is special-cased to not insert the + closing character when typed after a word character, to avoid triggering + when typing words with apostrophes. * Typing a closing brace or quote character while the next character past the cursor is that character will skip over it instead of inserting it. * Pressing when the next character is a closing brace will insert two -- cgit v1.2.3-54-g00ecf