Only check literal edit anchors.

Close #2778
(cherry picked from commit 8715cc2974f8c6b25bcf2cd2ed1af8518bf91f46)
ChangeLog Update for 2778