Last active
March 26, 2016 14:40
-
-
Save skanev/3620c288305cea367f47 to your computer and use it in GitHub Desktop.
A patch for homebrew less to add a not very useful option
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/command.c b/command.c | |
index c31fa81..11d7483 100644 | |
--- a/command.c | |
+++ b/command.c | |
@@ -273,10 +273,13 @@ exec_mca() | |
if (secure) | |
break; | |
- if (shellcmd == NULL) | |
+ if (shellcmd == NULL) { | |
lsystem("", "!done"); | |
- else | |
+ } else if (genenv("LESS_QUICKSHELL") != NULL) { | |
+ lsystem(shellcmd, (char *) NULL); | |
+ } else { | |
lsystem(shellcmd, "!done"); | |
+ } | |
break; | |
#endif | |
#if PIPEC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment