Mercurial > vim
comparison src/ex_cmds.c @ 100:1f3902f3eb5c v7.0038
updated for version 7.0038
author | vimboss |
---|---|
date | Fri, 14 Jan 2005 21:53:12 +0000 |
parents | 0ef9cebc4f5d |
children | c5b05f6de1ad |
comparison
equal
deleted
inserted
replaced
99:04f2e519ab18 | 100:1f3902f3eb5c |
---|---|
903 del_lines(linecount, TRUE); | 903 del_lines(linecount, TRUE); |
904 curbuf->b_op_start.lnum -= linecount; /* adjust '[ */ | 904 curbuf->b_op_start.lnum -= linecount; /* adjust '[ */ |
905 curbuf->b_op_end.lnum -= linecount; /* adjust '] */ | 905 curbuf->b_op_end.lnum -= linecount; /* adjust '] */ |
906 write_lnum_adjust(-linecount); /* adjust last line | 906 write_lnum_adjust(-linecount); /* adjust last line |
907 for next write */ | 907 for next write */ |
908 #ifdef FEAT_FOLDING | |
909 foldUpdate(curwin, curbuf->b_op_start.lnum, curbuf->b_op_end.lnum); | |
910 #endif | |
908 } | 911 } |
909 else | 912 else |
910 { | 913 { |
911 /* | 914 /* |
912 * Put cursor on last new line for ":r !cmd". | 915 * Put cursor on last new line for ":r !cmd". |
913 */ | 916 */ |
914 curwin->w_cursor.lnum = curbuf->b_op_end.lnum; | 917 curwin->w_cursor.lnum = curbuf->b_op_end.lnum; |
915 linecount = curbuf->b_op_end.lnum - curbuf->b_op_start.lnum + 1; | 918 linecount = curbuf->b_op_end.lnum - curbuf->b_op_start.lnum + 1; |
916 } | 919 } |
920 | |
917 beginline(BL_WHITE | BL_FIX); /* cursor on first non-blank */ | 921 beginline(BL_WHITE | BL_FIX); /* cursor on first non-blank */ |
918 --no_wait_return; | 922 --no_wait_return; |
919 | 923 |
920 if (linecount > p_report) | 924 if (linecount > p_report) |
921 { | 925 { |