To: vim-dev@vim.org Subject: Patch 5.6.001 Fcc: outbox From: Bram Moolenaar ------------ Patch 5.6.001 Problem: When using "set bs=0 si cin", Inserting "#" or "}" which reduces the indent doesn't delete the "#" or "}". (Lorton) Solution: Adjust ai_col in ins_try_si(). Files: src/edit.c *** ../vim-5.6/src/edit.c Sun Jan 16 22:41:04 2000 --- src/edit.c Tue Jan 18 19:48:19 2000 *************** *** 5793,5798 **** --- 5793,5802 ---- old_indent = get_indent(); set_indent(0, TRUE); } + + /* Adjust ai_col, the char at this position can be deleted. */ + if (ai_col > curwin->w_cursor.col) + ai_col = curwin->w_cursor.col; } #endif *** ../vim-5.6/src/version.c Sun Jan 16 22:41:00 2000 --- src/version.c Tue Jan 18 19:51:57 2000 *************** *** 420,421 **** --- 420,423 ---- { /* Add new patch number below this line */ + /**/ + 1, /**/ -- hundred-and-one symptoms of being an internet addict: 221. Your wife melts your keyboard in the oven. --/-/---- Bram Moolenaar ---- Bram@moolenaar.net ---- Bram@vim.org ---\-\-- \ \ www.vim.org/iccf www.moolenaar.net www.vim.org / /