mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-26 20:16:33 +00:00
Add flag to less to enable quitting on Ctrl-C
This commit is contained in:
1 parent
c657b18efd
commit
d9dd9729b8
1 file changed
+3
@@ -93,6 +93,9 @@ impl OutputType {
|
||||
p.arg("-S"); // Short version of --chop-long-lines for compatibility
|
||||
}
|
||||
|
||||
// Ensures that 'less' quits together with 'bat'
|
||||
p.arg("-K"); // Sort version of ' --quit-on-intr'
|
||||
|
||||
// Passing '--no-init' fixes a bug with '--quit-if-one-screen' in older
|
||||
// versions of 'less'. Unfortunately, it also breaks mouse-wheel support.
|
||||
//
|
||||
|
||||
Reference in new issue
Block a user