* editcmd.c (edit_block_copy_cmd): Allow a block of selected

columns	as created by Shift + F3 to be copied anywhere in
the editor area.
This commit is contained in:
Pavel Tsekov 2006-01-27 15:00:59 +00:00
parent ed780ec9a7
commit 60658b4b35
2 changed files with 7 additions and 6 deletions

View File

@ -1,3 +1,9 @@
2006-01-27 Pavel Tsekov <ptsekov@gmx.net>
* editcmd.c (edit_block_copy_cmd): Allow a block of selected
columns as created by Shift + F3 to be copied anywhere in
the editor area.
2006-01-26 Oswald Buddenhagen <ossi@kde.org>
* edit.c (edit_auto_indent): Remove redundant parameters.

View File

@ -944,17 +944,12 @@ void
edit_block_copy_cmd (WEdit *edit)
{
long start_mark, end_mark, current = edit->curs1;
int size, x;
int size;
unsigned char *copy_buf;
edit_update_curs_col (edit);
x = edit->curs_col;
if (eval_marks (edit, &start_mark, &end_mark))
return;
if (column_highlighting)
if ((x >= edit->column1 && x < edit->column2)
|| (x > edit->column2 && x <= edit->column1))
return;
copy_buf = edit_get_block (edit, start_mark, end_mark, &size);