|
Karsten Hopp |
faa148 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
faa148 |
Subject: Patch 7.4.178
|
|
Karsten Hopp |
faa148 |
Fcc: outbox
|
|
Karsten Hopp |
faa148 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
faa148 |
Mime-Version: 1.0
|
|
Karsten Hopp |
faa148 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
faa148 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
faa148 |
------------
|
|
Karsten Hopp |
faa148 |
|
|
Karsten Hopp |
faa148 |
Patch 7.4.178
|
|
Karsten Hopp |
faa148 |
Problem: The J command does not update '[ and '] marks. (William Gardner)
|
|
Karsten Hopp |
faa148 |
Solution: Set the marks. (Christian Brabandt)
|
|
Karsten Hopp |
faa148 |
Files: src/ops.c
|
|
Karsten Hopp |
faa148 |
|
|
Karsten Hopp |
faa148 |
|
|
Karsten Hopp |
faa148 |
*** ../vim-7.4.177/src/ops.c 2014-01-14 12:33:32.000000000 +0100
|
|
Karsten Hopp |
faa148 |
--- src/ops.c 2014-02-11 19:22:46.538343647 +0100
|
|
Karsten Hopp |
faa148 |
***************
|
|
Karsten Hopp |
faa148 |
*** 4452,4457 ****
|
|
Karsten Hopp |
faa148 |
--- 4452,4463 ----
|
|
Karsten Hopp |
faa148 |
for (t = 0; t < count; ++t)
|
|
Karsten Hopp |
faa148 |
{
|
|
Karsten Hopp |
faa148 |
curr = curr_start = ml_get((linenr_T)(curwin->w_cursor.lnum + t));
|
|
Karsten Hopp |
faa148 |
+ if (t == 0)
|
|
Karsten Hopp |
faa148 |
+ {
|
|
Karsten Hopp |
faa148 |
+ /* Set the '[ mark. */
|
|
Karsten Hopp |
faa148 |
+ curwin->w_buffer->b_op_start.lnum = curwin->w_cursor.lnum;
|
|
Karsten Hopp |
faa148 |
+ curwin->w_buffer->b_op_start.col = (colnr_T)STRLEN(curr);
|
|
Karsten Hopp |
faa148 |
+ }
|
|
Karsten Hopp |
faa148 |
#if defined(FEAT_COMMENTS) || defined(PROTO)
|
|
Karsten Hopp |
faa148 |
if (remove_comments)
|
|
Karsten Hopp |
faa148 |
{
|
|
Karsten Hopp |
faa148 |
***************
|
|
Karsten Hopp |
faa148 |
*** 4568,4573 ****
|
|
Karsten Hopp |
faa148 |
--- 4574,4583 ----
|
|
Karsten Hopp |
faa148 |
}
|
|
Karsten Hopp |
faa148 |
ml_replace(curwin->w_cursor.lnum, newp, FALSE);
|
|
Karsten Hopp |
faa148 |
|
|
Karsten Hopp |
faa148 |
+ /* Set the '] mark. */
|
|
Karsten Hopp |
faa148 |
+ curwin->w_buffer->b_op_end.lnum = curwin->w_cursor.lnum;
|
|
Karsten Hopp |
faa148 |
+ curwin->w_buffer->b_op_end.col = (colnr_T)STRLEN(newp);
|
|
Karsten Hopp |
faa148 |
+
|
|
Karsten Hopp |
faa148 |
/* Only report the change in the first line here, del_lines() will report
|
|
Karsten Hopp |
faa148 |
* the deleted line. */
|
|
Karsten Hopp |
faa148 |
changed_lines(curwin->w_cursor.lnum, currsize,
|
|
Karsten Hopp |
faa148 |
*** ../vim-7.4.177/src/version.c 2014-02-11 18:58:05.102320947 +0100
|
|
Karsten Hopp |
faa148 |
--- src/version.c 2014-02-11 19:23:59.722344768 +0100
|
|
Karsten Hopp |
faa148 |
***************
|
|
Karsten Hopp |
faa148 |
*** 740,741 ****
|
|
Karsten Hopp |
faa148 |
--- 740,743 ----
|
|
Karsten Hopp |
faa148 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
faa148 |
+ /**/
|
|
Karsten Hopp |
faa148 |
+ 178,
|
|
Karsten Hopp |
faa148 |
/**/
|
|
Karsten Hopp |
faa148 |
|
|
Karsten Hopp |
faa148 |
--
|
|
Karsten Hopp |
faa148 |
Eight Megabytes And Continually Swapping.
|
|
Karsten Hopp |
faa148 |
|
|
Karsten Hopp |
faa148 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
faa148 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
faa148 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
faa148 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|