From f59317c2b5bae50c40d37824e107a08e6190923d Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Wed, 29 Nov 2023 21:55:07 +0100 Subject: [PATCH] Remove alternative apostrophe from auto select logic because it is already a letter --- novelwriter/constants.py | 3 --- novelwriter/gui/doceditor.py | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/novelwriter/constants.py b/novelwriter/constants.py index 461647de..4afa7781 100644 --- a/novelwriter/constants.py +++ b/novelwriter/constants.py @@ -349,9 +349,6 @@ class nwUnicode: # Unicode Constants # ================= - # Lookup - APOS_TYPE = "\u0027\u2019\u02bc" - # Quotation Marks U_QUOT = "\u0022" # Quotation mark U_APOS = "\u0027" # Apostrophe diff --git a/novelwriter/gui/doceditor.py b/novelwriter/gui/doceditor.py index 5a5ed184..64a0e7a6 100644 --- a/novelwriter/gui/doceditor.py +++ b/novelwriter/gui/doceditor.py @@ -2012,7 +2012,7 @@ class GuiDocEditor(QPlainTextEdit): cPos = cursor.position() bPos = cursor.block().position() bLen = cursor.block().length() - apos = nwUnicode.APOS_TYPE + apos = nwUnicode.U_APOS + nwUnicode.U_RSQUO # Scan backward sPos = cPos