]> cgit.babelmonkeys.de Git - jubjub.git/blobdiff - src/gui/cli/linenoise.m
Adapt to ObjFW exception API changes
[jubjub.git] / src / gui / cli / linenoise.m
index 4bfd7df954a238efc3467b051e68ba92af0360ec..726726c8557e28717f6b2056aa928b3bca512f7e 100644 (file)
@@ -590,9 +590,7 @@ static void linenoiseAtExit(void)
 - (void)setMaximalHistoryLength: (size_t)len
 {
        if (len < 1)
-               @throw [OFInvalidArgumentException
-                   exceptionWithClass: [self class]
-                             selector: _cmd];
+               @throw [OFInvalidArgumentException exception];
 
        OFMutableArray *old = _history, *new;
        int tocopy = len < [old count] ? len : [old count];