mirror of
https://github.com/sharkdp/bat.git
synced 2025-09-04 04:12:31 +01:00
Add flag to less to enable quitting on Ctrl-C
This commit is contained in:
@@ -93,6 +93,9 @@ impl OutputType {
|
|||||||
p.arg("-S"); // Short version of --chop-long-lines for compatibility
|
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
|
// Passing '--no-init' fixes a bug with '--quit-if-one-screen' in older
|
||||||
// versions of 'less'. Unfortunately, it also breaks mouse-wheel support.
|
// versions of 'less'. Unfortunately, it also breaks mouse-wheel support.
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user