void-packages/srcpkgs/lilyterm/patches/no-empty-environment-variables.patch
Đoàn Trần Công Danh 861ac185a6 srcpkgs/l*: 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

21 lines
763 B
Diff

diff --git src/notebook.c src/notebook.c
index eb4d973..0789a33 100644
--- a/src/notebook.c
+++ b/src/notebook.c
@@ -158,13 +158,13 @@ struct Page *add_page(struct Window *win_data,
#ifdef ENABLE_SET_EMULATION
# ifdef SAFEMODE
if (win_data->emulate_term == NULL)
- g_string_append_printf (environ_str, "TERM=xterm");
+ g_string_append_printf (environ_str, "TERM=xterm\t");
else
# endif
- g_string_append_printf (environ_str, "TERM=%s", win_data->emulate_term);
+ g_string_append_printf (environ_str, "TERM=%s\t", win_data->emulate_term);
#endif
// set colorterm
- g_string_append_printf (environ_str, "\tCOLORTERM=lilyterm");
+ g_string_append_printf (environ_str, "COLORTERM=lilyterm");
// ---- Setting the VTE_CJK_WIDTH environment ---- //