Commit 47374d44 authored by Mattias Engdegård's avatar Mattias Engdegård
Browse files

duplicate-line: fix optional argument and add test (bug#46621)

The test assumes that the current semantics are intended and desired,
which may or may not be true, but it's better than not having any at

* lisp/misc.el (duplicate-line): Don't crash if called with no argument.
* test/lisp/misc-tests.el (misc--duplicate-line): New test.
parent 55c21025
Pipeline #18730 passed with stage
in 5 minutes and 26 seconds