pymud 0.21.4__py3-none-any.whl → 0.21.4.post1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pymud/extras.py +4 -3
- {pymud-0.21.4.dist-info → pymud-0.21.4.post1.dist-info}/METADATA +1 -1
- {pymud-0.21.4.dist-info → pymud-0.21.4.post1.dist-info}/RECORD +7 -7
- {pymud-0.21.4.dist-info → pymud-0.21.4.post1.dist-info}/WHEEL +0 -0
- {pymud-0.21.4.dist-info → pymud-0.21.4.post1.dist-info}/entry_points.txt +0 -0
- {pymud-0.21.4.dist-info → pymud-0.21.4.post1.dist-info}/licenses/LICENSE.txt +0 -0
- {pymud-0.21.4.dist-info → pymud-0.21.4.post1.dist-info}/top_level.txt +0 -0
pymud/extras.py
CHANGED
@@ -755,7 +755,8 @@ class PyMudBufferControl(UIControl):
|
|
755
755
|
if (east_asian_width(ch) in "FWA") and (wcwidth(ch) == 1):
|
756
756
|
|
757
757
|
if ch in self.FULL_BLOCKS:
|
758
|
-
new_str.append(ch
|
758
|
+
new_str.append(ch)
|
759
|
+
new_str.append(ch)
|
759
760
|
elif ch in self.SINGLE_LINES:
|
760
761
|
new_str.append(ch)
|
761
762
|
new_str.append("─")
|
@@ -774,8 +775,6 @@ class PyMudBufferControl(UIControl):
|
|
774
775
|
else:
|
775
776
|
new_str.append(ch)
|
776
777
|
|
777
|
-
# 添加一个不可见字符,用于允许选择行时选到最后一个字符
|
778
|
-
new_str.append("\u200B")
|
779
778
|
|
780
779
|
return "".join(new_str)
|
781
780
|
|
@@ -804,6 +803,8 @@ class PyMudBufferControl(UIControl):
|
|
804
803
|
# 处理Tab(\r)符号(^I)对齐
|
805
804
|
line = self.tab_correction(line)
|
806
805
|
|
806
|
+
line += "\u200B" # 最后添加一个不可见字符,用于允许选择行时选到最后一个字符
|
807
|
+
|
807
808
|
return line
|
808
809
|
|
809
810
|
def create_content(self, width: int, height: int) -> UIContent:
|
@@ -2,7 +2,7 @@ pymud/__init__.py,sha256=oeHz0NM7_DwChCY8f_vQ_fBq0e_HoTd0cahCFwaavWE,806
|
|
2
2
|
pymud/__main__.py,sha256=lIOBiJmi8X-EWXVIx_OoxSgUZ0FYKlZI8hXVnLUYTJQ,61
|
3
3
|
pymud/decorators.py,sha256=rNuDaKk65Cwc9K6t0-BpqNUORs8-8X5Xsv6YaLQ7hc4,9839
|
4
4
|
pymud/dialogs.py,sha256=1xo5NJjch-u7RSRcclhvUE4gi8POgiZWK84lNx_HJbs,6891
|
5
|
-
pymud/extras.py,sha256=
|
5
|
+
pymud/extras.py,sha256=07YDRewb0aNzi-hkahUEU6fAnzcVkymc9MhTnDg2e-Y,37945
|
6
6
|
pymud/i18n.py,sha256=qLgvrmYhVfkTHKpbBR-LfYMOrGgi0skHrelbsj7ItbE,3034
|
7
7
|
pymud/logger.py,sha256=F2LBUogdzv2WXHo10CNorDh2VleAX1Wbwmxc3zznHlM,5823
|
8
8
|
pymud/main.py,sha256=zaSjNhpbX3FMulKg-UNFrdiIJO8sOmmrUQrkPOalB-4,10224
|
@@ -15,9 +15,9 @@ pymud/session.py,sha256=sTswAPEl5GWcxzYmgovG8lOlflNTd5k8ggW6zJ6vcMY,154690
|
|
15
15
|
pymud/settings.py,sha256=V4wHKP2UjmX_l2bKJoUJSfNbH7vs3GZlN4u-1tRFbxA,7697
|
16
16
|
pymud/lang/i18n_chs.py,sha256=2cyaHHLwpYEBBwuQXyRTxa1opX53fTv1f8_QDQeGlC0,16836
|
17
17
|
pymud/lang/i18n_eng.py,sha256=jcPz6Y5UuxJBQLY_e8UnEF3GYTlnAD44C14Oj7sK-QI,45935
|
18
|
-
pymud-0.21.4.dist-info/licenses/LICENSE.txt,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
19
|
-
pymud-0.21.4.dist-info/METADATA,sha256=
|
20
|
-
pymud-0.21.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
21
|
-
pymud-0.21.4.dist-info/entry_points.txt,sha256=diPUOtTkhgC1hVny7Cdg4aRhaHSynMQoraE7ZhJxUcw,37
|
22
|
-
pymud-0.21.4.dist-info/top_level.txt,sha256=8Gp1eXjxixXjqhhti6tLCspV_8s9sNV3z5Em2_KRhD4,6
|
23
|
-
pymud-0.21.4.dist-info/RECORD,,
|
18
|
+
pymud-0.21.4.post1.dist-info/licenses/LICENSE.txt,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
19
|
+
pymud-0.21.4.post1.dist-info/METADATA,sha256=16hQ1rEid5uC7uM7zLxpe86N-HRjtbea1zSbTkRDNT4,46537
|
20
|
+
pymud-0.21.4.post1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
21
|
+
pymud-0.21.4.post1.dist-info/entry_points.txt,sha256=diPUOtTkhgC1hVny7Cdg4aRhaHSynMQoraE7ZhJxUcw,37
|
22
|
+
pymud-0.21.4.post1.dist-info/top_level.txt,sha256=8Gp1eXjxixXjqhhti6tLCspV_8s9sNV3z5Em2_KRhD4,6
|
23
|
+
pymud-0.21.4.post1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|