Fix duplicate-line-or-region fn