From 1b3d7413914e8ad1ecc2376ed8bf7ca48b945dab Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 3 May 2018 14:28:30 +0200 Subject: community/tilix: fixed a long to glong --- community/tilix/PKGBUILD | 12 ++++++++++++ .../tilix/tilix-1.7.9-32bit-glong-getCursorPosition.patch | 12 ++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 community/tilix/PKGBUILD create mode 100644 community/tilix/tilix-1.7.9-32bit-glong-getCursorPosition.patch 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); -- cgit v1.2.3-70-g09d2