summaryrefslogtreecommitdiff
path: root/homebrew/vifm/patches.sh
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/vifm/patches.sh')
-rwxr-xr-xhomebrew/vifm/patches.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/homebrew/vifm/patches.sh b/homebrew/vifm/patches.sh
new file mode 100755
index 000000000..c3f81f9e7
--- /dev/null
+++ b/homebrew/vifm/patches.sh
@@ -0,0 +1,18 @@
+echo 'Creating brew-patch.diff'
+cat << EOF >> brew-patch.diff
+diff --git a/src/ui/ui.c b/src/ui/ui.c
+index 117ca8b86..ce82b17e8 100644
+--- a/src/ui/ui.c
++++ b/src/ui/ui.c
+@@ -345,6 +345,11 @@ ui_update_term_state(void)
+ int
+ ui_char_pressed(wint_t c)
+ {
++ if(curr_stats.load_stage < 2)
++ {
++ return 0;
++ }
++
+ wint_t pressed = L'\0';
+ const int cancellation_state = ui_cancellation_pause();
+EOF