To: vim-dev@vim.org Subject: Patch 6.0aw.002 Fcc: outbox From: Bram Moolenaar ------------ Patch 6.0aw.002 Problem: Crash when using syntax highlighting with an "extend" argument. (Johannes Zellner) Solution: Check for the last syntax item to have ended. Files: src/syntax.c *** ../vim-6.0aw/src/syntax.c Sun Sep 16 22:21:05 2001 --- src/syntax.c Mon Sep 17 12:31:48 2001 *************** *** 2310,2316 **** --- 2310,2320 ---- break; if (had_extend) + { syn_update_ends(FALSE); + if (current_state.ga_len == 0) + break; + } cur_si = &CUR_STATE(current_state.ga_len - 1); -- hundred-and-one symptoms of being an internet addict: 238. You think faxes are old-fashioned. /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ ((( Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim ))) \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///