To: vim-dev@vim.org Subject: Patch 5.5.012 Fcc: outbox From: Bram Moolenaar ------------ Patch 5.5.012 Problem: Using CTRL-] in Visual mode doesn't work when the text includes a space (just where it's useful). (Stefan Bittner) Solution: Don't escape special characters in a tag name with a backslash. Files: src/normal.c *** ../vim-5.5.11/src/normal.c Sun Sep 26 14:16:52 1999 --- src/normal.c Fri Oct 1 22:38:42 1999 *************** *** 3718,3725 **** */ if (cmdchar == '*' || cmdchar == '#') aux_ptr = (char_u *)(p_magic ? "/?.*~[^$\\" : "/?^$\\"); ! else aux_ptr = escape_chars; while (n--) { /* put a backslash before \ and some others */ --- 3718,3728 ---- */ if (cmdchar == '*' || cmdchar == '#') aux_ptr = (char_u *)(p_magic ? "/?.*~[^$\\" : "/?^$\\"); ! else if (cmdchar == 'K' && *p_kp != NUL) aux_ptr = escape_chars; + else + /* Don't escape chars in tag with a backslash */ + aux_ptr = (char_u *)""; while (n--) { /* put a backslash before \ and some others */ *** ../vim-5.5.11/src/version.c Thu Sep 30 19:34:26 1999 --- src/version.c Sat Oct 2 15:53:05 1999 *************** *** 420,420 **** --- 420,421 ---- { /* Add new patch number below this line */ + 12, -- hundred-and-one symptoms of being an internet addict: 258. When you want to see your girlfriend, you surf to her homepage. --/-/---- Bram Moolenaar ---- Bram@moolenaar.net ---- Bram@vim.org ---\-\-- \ \ www.vim.org/iccf www.moolenaar.net www.vim.org / /