]> git.neil.brown.name Git - edlib.git/commit
emacs-search: don't try to replace same string twice
authorNeilBrown <neil@brown.name>
Fri, 18 Aug 2023 04:04:42 +0000 (14:04 +1000)
committerNeilBrown <neil@brown.name>
Fri, 18 Aug 2023 04:11:18 +0000 (14:11 +1000)
commita11f583e33af4ee4a611c44534e8b425abbb3945
tree6997ab0c480e7e89aeacf5a4d389161cb5d1e749
parent550a7419c7738c4f0afd6aad6f54456610b0978c
emacs-search: don't try to replace same string twice

:A:Enter replaces but stays in same place.  Repeating the command causes
the replacement to be attempted again, which is bad if orig and new are
different length.
So detect and prevent this.

Signed-off-by: NeilBrown <neil@brown.name>
DOC/TODO.md
emacs-search.c
tests.d/00-basic