Add flag to less to enable quitting on Ctrl-C

This commit is contained in:
Eric Menne authored and Keith Hall committed 2025-08-22 17:49:53 +03:00
1 parent c657b18efd
commit d9dd9729b8
1 file changed
+3
+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.
//