Mercurial > vim
comparison src/if_python.c @ 1929:9230c45fdde6 v7.2.226
updated for version 7.2-226
author | vimboss |
---|---|
date | Thu, 09 Jul 2009 18:06:49 +0000 |
parents | fc89a4f98a8b |
children | 11c6bda3b53a |
comparison
equal
deleted
inserted
replaced
1928:7caa503b63a9 | 1929:9230c45fdde6 |
---|---|
2495 PyErr_SetVim(_("cannot save undo information")); | 2495 PyErr_SetVim(_("cannot save undo information")); |
2496 else if (ml_delete((linenr_T)n, FALSE) == FAIL) | 2496 else if (ml_delete((linenr_T)n, FALSE) == FAIL) |
2497 PyErr_SetVim(_("cannot delete line")); | 2497 PyErr_SetVim(_("cannot delete line")); |
2498 else | 2498 else |
2499 { | 2499 { |
2500 deleted_lines_mark((linenr_T)n, 1L); | |
2501 if (buf == curwin->w_buffer) | 2500 if (buf == curwin->w_buffer) |
2502 py_fix_cursor((linenr_T)n, (linenr_T)n + 1, (linenr_T)-1); | 2501 py_fix_cursor((linenr_T)n, (linenr_T)n + 1, (linenr_T)-1); |
2502 deleted_lines_mark((linenr_T)n, 1L); | |
2503 } | 2503 } |
2504 | 2504 |
2505 curbuf = savebuf; | 2505 curbuf = savebuf; |
2506 | 2506 |
2507 if (PyErr_Occurred() || VimErrorCheck()) | 2507 if (PyErr_Occurred() || VimErrorCheck()) |
2594 { | 2594 { |
2595 PyErr_SetVim(_("cannot delete line")); | 2595 PyErr_SetVim(_("cannot delete line")); |
2596 break; | 2596 break; |
2597 } | 2597 } |
2598 } | 2598 } |
2599 deleted_lines_mark((linenr_T)lo, (long)i); | |
2600 | |
2601 if (buf == curwin->w_buffer) | 2599 if (buf == curwin->w_buffer) |
2602 py_fix_cursor((linenr_T)lo, (linenr_T)hi, (linenr_T)-n); | 2600 py_fix_cursor((linenr_T)lo, (linenr_T)hi, (linenr_T)-n); |
2601 deleted_lines_mark((linenr_T)lo, (long)i); | |
2603 } | 2602 } |
2604 | 2603 |
2605 curbuf = savebuf; | 2604 curbuf = savebuf; |
2606 | 2605 |
2607 if (PyErr_Occurred() || VimErrorCheck()) | 2606 if (PyErr_Occurred() || VimErrorCheck()) |