command/attach-modes: above and below options

This commit is contained in:
Peter Kaplan
2024-03-05 09:47:26 +01:00
committed by Isaac Freund
parent f6cc4de884
commit d71bebc032
5 changed files with 37 additions and 3 deletions

View File

@ -29,7 +29,7 @@ fn parseAttachMode(args: []const [:0]const u8) Error!Config.AttachMode {
const tag = meta.stringToEnum(meta.Tag(Config.AttachMode), args[1]) orelse return Error.UnknownOption;
switch (tag) {
inline .top, .bottom => |mode| {
inline .top, .bottom, .above, .below => |mode| {
if (args.len > 2) return Error.TooManyArguments;
return mode;