diff options
author | ZyX <kp-pav@yandex.ru> | 2017-04-16 21:08:12 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-04-16 21:13:24 +0300 |
commit | b5db7cde366ae159aee6826167b68c3aff0cdf19 (patch) | |
tree | 15a87fb2de7f557ae1f3b912b56f52e233870b2f /src | |
parent | 54bd78b8a8d212a0278b1d9517dd0dcc4df79a0b (diff) | |
download | rneovim-b5db7cde366ae159aee6826167b68c3aff0cdf19.tar.gz rneovim-b5db7cde366ae159aee6826167b68c3aff0cdf19.tar.bz2 rneovim-b5db7cde366ae159aee6826167b68c3aff0cdf19.zip |
normal: Clarify the code
Current variant works only because of PUT_FIXINDENT being equal to true.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/normal.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c index 1809b98586..d7c7c7d48c 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -2336,7 +2336,8 @@ do_mouse ( if ((State & REPLACE_FLAG) && !yank_register_mline(regname)) insert_reg(regname, true); 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 */ AppendCharToRedobuff(Ctrl_R); @@ -2688,7 +2689,8 @@ do_mouse ( */ if (restart_edit != 0) 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 |