To: vim-dev@vim.org Subject: patch 5.5.057 Fcc: outbox From: Bram Moolenaar ------------ Patch 5.5.057 Problem: After "S" it should be possible to restore the line with "U". (Veselinovic) Solution: Don't call u_clearline() in op_delete() when changing only one line. Files: src/ops.c *** ../vim-5.5.56/src/ops.c Sun Dec 5 20:29:55 1999 --- src/ops.c Mon Dec 6 17:26:46 1999 *************** *** 1450,1462 **** #endif truncate_line(FALSE); /* delete the rest of the line */ /* leave cursor past last char in line */ } else { del_lines(oap->line_count, TRUE, TRUE); beginline(BL_WHITE | BL_FIX); } - u_clearline(); /* "U" command should not be possible after "dd" */ } else if (oap->line_count == 1) /* delete characters within one line */ { --- 1450,1464 ---- #endif truncate_line(FALSE); /* delete the rest of the line */ /* leave cursor past last char in line */ + if (oap->line_count > 1) + u_clearline(); /* "U" command not possible after "2cc" */ } else { del_lines(oap->line_count, TRUE, TRUE); beginline(BL_WHITE | BL_FIX); + u_clearline(); /* "U" command not possible after "dd" */ } } else if (oap->line_count == 1) /* delete characters within one line */ { *** ../vim-5.5.56/src/version.c Mon Dec 6 17:31:39 1999 --- src/version.c Mon Dec 6 17:31:25 1999 *************** *** 420,420 **** --- 420,421 ---- { /* Add new patch number below this line */ + 57, -- hundred-and-one symptoms of being an internet addict: 256. You are able to write down over 250 symptoms of being an internet addict, even though they only asked for 101. --/-/---- Bram Moolenaar ---- Bram@moolenaar.net ---- Bram@vim.org ---\-\-- \ \ www.vim.org/iccf www.moolenaar.net www.vim.org / /