Mercurial > vim
diff src/if_ruby.c @ 856:8cd729851562 v7.0g
updated for version 7.0g
author | vimboss |
---|---|
date | Sun, 30 Apr 2006 18:54:39 +0000 |
parents | 8bebcabccc2c |
children | 354ea37841d1 |
line wrap: on
line diff
--- a/src/if_ruby.c +++ b/src/if_ruby.c @@ -571,9 +571,9 @@ static VALUE buffer_s_count() for (b = firstbuf; b != NULL; b = b->b_next) { - /* Deleted buffers should not be counted - * SegPhault - 01/07/05 */ - if (b->b_p_bl) + /* Deleted buffers should not be counted + * SegPhault - 01/07/05 */ + if (b->b_p_bl) n++; } @@ -587,15 +587,15 @@ static VALUE buffer_s_aref(VALUE self, V for (b = firstbuf; b != NULL; b = b->b_next) { - /* Deleted buffers should not be counted - * SegPhault - 01/07/05 */ - if (!b->b_p_bl) + /* Deleted buffers should not be counted + * SegPhault - 01/07/05 */ + if (!b->b_p_bl) continue; - if (n == 0) + if (n == 0) return buffer_new(b); - n--; + n--; } return Qnil; } @@ -685,9 +685,9 @@ static VALUE buffer_delete(VALUE self, V if (u_savedel(n, 1) == OK) { ml_delete(n, 0); - /* Changes to non-active buffers should properly refresh - * SegPhault - 01/09/05 */ - deleted_lines_mark(n, 1L); + /* Changes to non-active buffers should properly refresh + * SegPhault - 01/09/05 */ + deleted_lines_mark(n, 1L); changed(); } @@ -712,11 +712,11 @@ static VALUE buffer_append(VALUE self, V if (u_inssub(n + 1) == OK) { ml_append(n, (char_u *) line, (colnr_T) 0, FALSE); - /* Changes to non-active buffers should properly refresh screen - * SegPhault - 12/20/04 */ - appended_lines_mark(n, 1L); + /* Changes to non-active buffers should properly refresh screen + * SegPhault - 12/20/04 */ + appended_lines_mark(n, 1L); - changed(); + changed(); } curbuf = savebuf; update_curbuf(NOT_VALID);