diff --git a/src/set.rs b/src/set.rs index 40948a2..1ab45e6 100644 --- a/src/set.rs +++ b/src/set.rs @@ -372,6 +372,15 @@ fn parse_arguments(args: &[String]) -> Result<(Register, Operation, Register), K Register::from_str(r)?, )) } + [middle] => { + // They gave us one argument like "-" + // Default to (current selection)(operation)(^ register (set with Z)) => _-^ + Ok(( + Register::Underscore, + Operation::from_str(middle)?, + Register::Caret, + )) + } _ => Err(KakError::Custom( "Invalid arguments to set command".to_string(), )),