void-packages/srcpkgs/PAmix/patches/4807a44c793a61bb3eb7aa110c08db51938d4502.patch
Đoàn Trần Công Danh ec4c2d75fa srcpkgs/[A-Z]*: convert patches to -Np1
```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.-][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.-][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

28 lines
595 B
Diff

From 4807a44c793a61bb3eb7aa110c08db51938d4502 Mon Sep 17 00:00:00 2001
From: Joshua Jensch <jenschjoshua@gmail.com>
Date: Sun, 7 Jan 2018 16:54:18 +0100
Subject: [PATCH] remove redundant ncursesw include
fixes #37
---
src/pamix_ui.cpp | 8 --------
1 file changed, 8 deletions(-)
diff --git a/src/pamix_ui.cpp b/src/pamix_ui.cpp
index ed2d65e..16a2e34 100644
--- a/src/pamix_ui.cpp
+++ b/src/pamix_ui.cpp
@@ -1,13 +1,5 @@
#include <pamix_ui.hpp>
-#ifdef FEAT_UNICODE
-
-#include <ncursesw/ncurses.h>
-
-#else
-#include <ncurses.h>
-#endif
-
#include <pamix.hpp>
void pamix_ui::reset() {