To: [email protected]
Subject: patch 5.5a.2
Fcc: outbox
From: Bram Moolenaar <[email protected]>
------------

Patch 5.5a.2
Problem:    append() did not mark the buffer modified.  Marks below the
           new line were not adjusted.
Solution:   Fix the f_append() function.
Files:      src/eval.c


*** ../vim-5.5a.1/src/eval.c    Mon Aug 30 10:40:48 1999
--- src/eval.c  Wed Sep  1 11:34:20 1999
***************
*** 2143,2154 ****
--- 2143,2160 ----
     if (lnum >= 0 && lnum <= curbuf->b_ml.ml_line_count
           && u_save(lnum, lnum + 1) == OK)
     {
+ #ifdef SYNTAX_HL
+       /* recompute syntax hl., starting with lnum */
+       syn_changed(lnum + 1);
+ #endif
+       mark_adjust(lnum + 1, (linenr_t)MAXLNUM, 1L, 0L);
       ml_append(lnum, get_var_string(&argvars[1]), (colnr_t)0, FALSE);
       if (curwin->w_cursor.lnum > lnum)
       {
           ++curwin->w_cursor.lnum;
           changed_line_abv_curs();
       }
+       changed();
       update_curbuf(NOT_VALID);
       retvar->var_val.var_number = 0;
     }
*** ../vim-5.5a.1/src/version.c Mon Aug 30 10:43:01 1999
--- src/version.c       Wed Sep  1 17:45:59 1999
***************
*** 420,420 ****
--- 420,421 ----
 {   /* Add new patch number below this line */
+     2,

--
`When any government, or any church for that matter, undertakes to say to
its subjects, "This you may not read, this you must not see, this you are
forbidden to know," the end result is tyranny and oppression no matter how
holy the motives' -- Robert A Heinlein, "If this goes on --"

--/-/---- Bram Moolenaar ---- [email protected] ---- [email protected] ---\-\--
 \ \    www.vim.org/iccf      www.moolenaar.net       www.vim.org    / /