This is a workaround to an issue where editline counts non-printable control characters. See issue FS-3606.