diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-02-05 23:38:30 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-02-07 00:01:58 +0100 |
commit | d73dd1588ce6be4aa90b83fdcf4efc31ef743aec (patch) | |
tree | 9284a6b5d08395d148d2c93efb980f2f8543348f /src | |
parent | 2a4c9c6e4573ebeaaf5d30aeb2c8a9ce2ecab0d5 (diff) | |
download | rneovim-d73dd1588ce6be4aa90b83fdcf4efc31ef743aec.tar.gz rneovim-d73dd1588ce6be4aa90b83fdcf4efc31ef743aec.tar.bz2 rneovim-d73dd1588ce6be4aa90b83fdcf4efc31ef743aec.zip |
:terminal Enter/Leave should not increment jumplist
The old behavior is probably not justified, for the usual reason:
terminal buffers may have interactive processes, so cursor placement is
arbitrary, therefore tracking it in the jumplist is useless (or worse).
N.B.: per the docstring for `checkpcmark()` it looks like we were
calling `checkpcmark()` and `setpcmark()` in the wrong order.
closes #3723
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/terminal.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/nvim/terminal.c b/src/nvim/terminal.c index dfa758f41e..137855469f 100644 --- a/src/nvim/terminal.c +++ b/src/nvim/terminal.c @@ -61,7 +61,6 @@ #include "nvim/edit.h" #include "nvim/mouse.h" #include "nvim/memline.h" -#include "nvim/mark.h" #include "nvim/map.h" #include "nvim/misc1.h" #include "nvim/move.h" @@ -376,8 +375,6 @@ void terminal_enter(void) // Ensure the terminal is properly sized. terminal_resize(s->term, 0, 0); - checkpcmark(); - setpcmark(); int save_state = State; s->save_rd = RedrawingDisabled; State = TERM_FOCUS; |