snippets: last tab selection returns cursor to the body of for cycle