Hi Bram!
On Do, 17 Mär 2011, Bram Moolenaar wrote:
> If you do gH<Del> it deletes the line. It's only on the last line that
> it makes the line empty. Let's call that a bug.
>
> Someone who wants to fix this?
diff --git a/src/normal.c b/src/normal.c
--- a/src/normal.c
+++ b/src/normal.c
@@ -1776,6 +1776,11 @@
++oap->line_count;
}
}
+ if ( VIsual_select
+ && ( cap->nchar == 'H' || (oap->start.col == 0
+ && oap->end.col ==
(colnr_T)STRLEN(ml_get(oap->end.lnum))-1))
+ && *p_sel != 'o')
+ oap->motion_type = MLINE;
}
redo_VIsual_busy = FALSE;
That also fixes the bug, that when you select a whole line with the
mouse and press delete, the line is left empty.
Mit freundlichen Grüßen
Christian
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php