summaryrefslogtreecommitdiff
path: root/community
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-05-03 14:28:30 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2018-05-03 14:28:30 +0200
commit1b3d7413914e8ad1ecc2376ed8bf7ca48b945dab (patch)
tree21f8d6adc0c6eeb8aec2ab44e4dc86773d9cce5f /community
parentec111e964321eb6f8d56fab22bed0f58e1de1def (diff)
downloadpackages-1b3d7413914e8ad1ecc2376ed8bf7ca48b945dab.tar.xz
community/tilix: fixed a long to glong
Diffstat (limited to 'community')
-rw-r--r--community/tilix/PKGBUILD12
-rw-r--r--community/tilix/tilix-1.7.9-32bit-glong-getCursorPosition.patch12
2 files changed, 24 insertions, 0 deletions
diff --git a/community/tilix/PKGBUILD b/community/tilix/PKGBUILD
new file mode 100644
index 00000000..8edf0956
--- /dev/null
+++ b/community/tilix/PKGBUILD
@@ -0,0 +1,12 @@
+# https://github.com/gnunn1/tilix/issues/1392
+
+source+=('tilix-1.7.9-32bit-glong-getCursorPosition.patch')
+sha256sums+=('3217d9e0d84a2d4c3ce7d066e99fda23bf814f395a18881caef5245e51276824')
+
+eval "$(
+ declare -f prepare | \
+ sed '
+ 3 a patch -Np1 -i "${srcdir}"/tilix-1.7.9-32bit-glong-getCursorPosition.patch
+ '
+)"
+
diff --git a/community/tilix/tilix-1.7.9-32bit-glong-getCursorPosition.patch b/community/tilix/tilix-1.7.9-32bit-glong-getCursorPosition.patch
new file mode 100644
index 00000000..449e2209
--- /dev/null
+++ b/community/tilix/tilix-1.7.9-32bit-glong-getCursorPosition.patch
@@ -0,0 +1,12 @@
+diff -rauN tilix-1.7.9/source/gx/tilix/terminal/terminal.d tilix-1.7.9-32bit-glong-getCursorPosition-patch/source/gx/tilix/terminal/terminal.d
+--- tilix-1.7.9/source/gx/tilix/terminal/terminal.d 2018-04-29 01:49:55.000000000 +0200
++++ tilix-1.7.9-32bit-glong-getCursorPosition-patch/source/gx/tilix/terminal/terminal.d 2018-05-03 14:18:32.786498582 +0200
+@@ -1042,7 +1042,7 @@
+ if (vte is null) return false;
+
+ if (event.key.keyval == GdkKeysyms.GDK_Return && checkVTEFeature(TerminalFeature.EVENT_SCREEN_CHANGED) && currentScreen == TerminalScreen.NORMAL) {
+- long row, column;
++ glong row, column;
+ vte.getCursorPosition(column, row);
+ addPromptPosition(row);
+ tracef("Added prompt position %d", row);