accounting for ACE editor 0-indexed line numbers