1
0
mirror of https://github.com/sharkdp/bat synced 2026-06-09 10:03:18 +00:00

Add flag to less to enable quitting on Ctrl-C

This commit is contained in:
Eric Menne
2025-08-15 15:44:09 +02:00
committed by Keith Hall
parent c657b18efd
commit d9dd9729b8
+3
View File
@@ -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.
//