Skip to content

Commit

Permalink
Remove alternative apostrophe from auto select logic because it is al…
Browse files Browse the repository at this point in the history
…ready a letter
  • Loading branch information
vkbo committed Nov 29, 2023
1 parent b203bcd commit f59317c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions novelwriter/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion novelwriter/gui/doceditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2012,7 +2012,7 @@ def _autoSelect(self) -> QTextCursor:
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
Expand Down

0 comments on commit f59317c

Please sign in to comment.