This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/assets/epub-viewer.js b/src/assets/epub-viewer.js | |
index 90ec9fb..dd1a944 100644 | |
--- a/src/assets/epub-viewer.js | |
+++ b/src/assets/epub-viewer.js | |
@@ -565,20 +565,45 @@ const setupRendition = () => { | |
type: 'selection', | |
payload: { | |
position: getRect(range, frame), | |
text: selection.toString(), | |
cfi: new ePub.CFI(range, contents.cfiBase).toString(), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/extension.js b/extension.js | |
index 485e604..f500894 100644 | |
--- a/extension.js | |
+++ b/extension.js | |
@@ -481,58 +481,60 @@ MoveWindow.prototype = { | |
// no special handling for first time move | |
if (ignoreCornerSettings || !this._utils.changeCornerFirstTime()) { | |
// window was moved to an other corner | |
if ((!keepHeight && !keepWidth) && (!sameWidth || !sameHeight)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/zim/gui/widgets.py b/zim/gui/widgets.py | |
index 1c81e538..4d36cbd2 100644 | |
--- a/zim/gui/widgets.py | |
+++ b/zim/gui/widgets.py | |
@@ -1664,6 +1664,8 @@ def gtk_entry_completion_match_func(completion, key, iter, column): | |
model = completion.get_model() | |
text = model.get_value(iter, column) | |
+ # Use non-normalized and non-casefolded key instead for comparison | |
+ key = completion.get_entry().get_text().lower() |