Cleanup
This commit is contained in:
parent
94ad2dc4ef
commit
37a0066acf
@ -76,6 +76,7 @@ fn main() {
|
||||
return;
|
||||
}
|
||||
|
||||
// This will be required for all subcommands from here on
|
||||
if get_var("kak_command_fifo")
|
||||
.and(get_var("kak_response_fifo"))
|
||||
.is_err()
|
||||
|
@ -289,6 +289,10 @@ fn to_ordered_counts(options: &Options, sels: Vec<Selection>) -> LinkedHashMap<S
|
||||
ret
|
||||
}
|
||||
|
||||
/// Performs an `Operation` on some set of keys
|
||||
/// * `operation` - The operation to perform
|
||||
/// * `left_keys` - The set on the left side of the operator
|
||||
/// * `right_keys` - The set on the right side of the operator
|
||||
fn key_set_operation<'a>(
|
||||
operation: &Operation,
|
||||
left_keys: &LinkedHashSet<&'a Selection>,
|
||||
@ -317,6 +321,9 @@ fn key_set_operation<'a>(
|
||||
}
|
||||
}
|
||||
|
||||
/// Parses the arguments used for set manipulation
|
||||
///
|
||||
/// Arguments can be given like `a-b`, `a - b`
|
||||
fn parse_arguments(args: &[String]) -> Result<(Register, Operation, Register), KakError> {
|
||||
let args = if args.len() == 1 {
|
||||
// They gave us something like "a-b" or "c?d"
|
||||
|
@ -10,7 +10,7 @@ pub struct Options {
|
||||
#[clap(
|
||||
short = 's',
|
||||
long,
|
||||
help = "Optional register for using subselection ma tching"
|
||||
help = "Optional register for using subselection matching"
|
||||
)]
|
||||
subselections_register: Option<char>,
|
||||
// TODO: Can we invert a boolean? This name is terrible
|
||||
|
Loading…
Reference in New Issue
Block a user