allow negative numbers for anchor offset

This commit is contained in:
sawka 2022-10-11 13:23:38 -07:00
parent 62fc2594ef
commit 61dac018fb

View File

@ -445,7 +445,7 @@ func ScreenCommand(ctx context.Context, pk *scpacket.FeCommandPacketType) (sstor
return update, nil
}
var swAnchorRe = regexp.MustCompile("^(\\d+)(?::(\\d+))?$")
var swAnchorRe = regexp.MustCompile("^(\\d+)(?::(-?\\d+))?$")
func SwSetCommand(ctx context.Context, pk *scpacket.FeCommandPacketType) (sstore.UpdatePacket, error) {
ids, err := resolveUiIds(ctx, pk, R_Session|R_Screen|R_Window)