The fix for #3170 only works if there is a newline after the comment or the offset of completion is not _exactly_ at EOF.
The fix for #3170 only works if there is a newline after the comment or the offset of completion is not exactly at EOF.