mirror of
https://github.com/9001/copyparty.git
synced 2026-06-18 20:22:27 -06:00
mde: fix crash on mobile
This commit is contained in:
parent
5e806ec124
commit
6183540c61
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -35,6 +35,7 @@ scripts/docker/base/test-aac/
|
|||
scripts/docker/base/whl/
|
||||
scripts/docker/i/
|
||||
scripts/deps-docker/uncomment.py
|
||||
scripts/deps-docker/unhint.py
|
||||
contrib/package/arch/pkg/
|
||||
contrib/package/arch/src/
|
||||
|
||||
|
|
|
|||
|
|
@ -156,6 +156,7 @@ COPY uncomment.py unhint.py /z
|
|||
RUN mv /z/mfusepy-3.1.1/mfusepy.py /z/dist/ \
|
||||
&& cd /z/dist \
|
||||
&& python3 /z/unhint.py \
|
||||
&& rm -f uh \
|
||||
&& mv mfusepy.py f1 \
|
||||
&& python3 /z/uncomment.py f1 \
|
||||
&& sed -ri '/self.__critical_exception/d; /^from (typing|collections.abc) import/d' f1 \
|
||||
|
|
|
|||
|
|
@ -114,12 +114,14 @@ diff -wNarU2 codemirror-5.65.1-orig/src/input/ContentEditableInput.js codemirror
|
|||
+ /*
|
||||
let order = getOrder(line, cm.doc.direction), side = "left"
|
||||
if (order) {
|
||||
@@ -405,4 +406,5 @@
|
||||
@@ -405,5 +406,6 @@
|
||||
side = partPos % 2 ? "right" : "left"
|
||||
}
|
||||
- let result = nodeAndOffsetInLineMap(info.map, pos.ch, side)
|
||||
+ */
|
||||
let result = nodeAndOffsetInLineMap(info.map, pos.ch, side)
|
||||
+ let result = nodeAndOffsetInLineMap(info.map, pos.ch, "left")
|
||||
result.offset = result.collapse == "right" ? result.end : result.start
|
||||
return result
|
||||
diff -wNarU2 codemirror-5.65.1-orig/src/input/movement.js codemirror-5.65.1/src/input/movement.js
|
||||
--- codemirror-5.65.1-orig/src/input/movement.js 2022-01-20 13:06:23.000000000 +0100
|
||||
+++ codemirror-5.65.1/src/input/movement.js 2022-02-09 22:50:18.145862052 +0100
|
||||
|
|
|
|||
Loading…
Reference in a new issue