mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
normal: Clarify the code
Current variant works only because of PUT_FIXINDENT being equal to true.
This commit is contained in:
parent
54bd78b8a8
commit
b5db7cde36
@ -2336,7 +2336,8 @@ do_mouse (
|
|||||||
if ((State & REPLACE_FLAG) && !yank_register_mline(regname))
|
if ((State & REPLACE_FLAG) && !yank_register_mline(regname))
|
||||||
insert_reg(regname, true);
|
insert_reg(regname, true);
|
||||||
else {
|
else {
|
||||||
do_put(regname, NULL, BACKWARD, 1L, fixindent | PUT_CURSEND);
|
do_put(regname, NULL, BACKWARD, 1L,
|
||||||
|
(fixindent ? PUT_FIXINDENT : 0) | PUT_CURSEND);
|
||||||
|
|
||||||
/* Repeat it with CTRL-R CTRL-O r or CTRL-R CTRL-P r */
|
/* Repeat it with CTRL-R CTRL-O r or CTRL-R CTRL-P r */
|
||||||
AppendCharToRedobuff(Ctrl_R);
|
AppendCharToRedobuff(Ctrl_R);
|
||||||
@ -2688,7 +2689,8 @@ do_mouse (
|
|||||||
*/
|
*/
|
||||||
if (restart_edit != 0)
|
if (restart_edit != 0)
|
||||||
where_paste_started = curwin->w_cursor;
|
where_paste_started = curwin->w_cursor;
|
||||||
do_put(regname, NULL, dir, count, fixindent | PUT_CURSEND);
|
do_put(regname, NULL, dir, count,
|
||||||
|
(fixindent ? PUT_FIXINDENT : 0)| PUT_CURSEND);
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* Ctrl-Mouse click or double click in a quickfix window jumps to the
|
* Ctrl-Mouse click or double click in a quickfix window jumps to the
|
||||||
|
Loading…
Reference in New Issue
Block a user