diff options
author | raichoo <raichoo@googlemail.com> | 2018-05-05 18:45:15 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-05-05 18:45:15 +0200 |
commit | 8ce63930484f1d41e70d8d8b5a485fb95eca242e (patch) | |
tree | f86658a72e287346e886fba2d9e10f8e1dd69bf0 | |
parent | bcc9a74e480c91fbfa99caf04b1bc9d92c5651b0 (diff) | |
download | rneovim-8ce63930484f1d41e70d8d8b5a485fb95eca242e.tar.gz rneovim-8ce63930484f1d41e70d8d8b5a485fb95eca242e.tar.bz2 rneovim-8ce63930484f1d41e70d8d8b5a485fb95eca242e.zip |
terminal: Leave 'relativenumber' alone (#8360)
ref #6796
-rw-r--r-- | runtime/doc/nvim_terminal_emulator.txt | 1 | ||||
-rw-r--r-- | src/nvim/terminal.c | 3 |
2 files changed, 0 insertions, 4 deletions
diff --git a/runtime/doc/nvim_terminal_emulator.txt b/runtime/doc/nvim_terminal_emulator.txt index 94e7899b6a..8c6edc0fb8 100644 --- a/runtime/doc/nvim_terminal_emulator.txt +++ b/runtime/doc/nvim_terminal_emulator.txt @@ -96,7 +96,6 @@ global configuration. - 'list' is disabled - 'wrap' is disabled -- 'relativenumber' is disabled in |Terminal-mode| (and cannot be enabled) You can change the defaults with a TermOpen autocommand: > au TermOpen * setlocal list diff --git a/src/nvim/terminal.c b/src/nvim/terminal.c index d006477c80..f68bb2458d 100644 --- a/src/nvim/terminal.c +++ b/src/nvim/terminal.c @@ -396,10 +396,8 @@ void terminal_enter(void) win_T *save_curwin = curwin; int save_w_p_cul = curwin->w_p_cul; int save_w_p_cuc = curwin->w_p_cuc; - int save_w_p_rnu = curwin->w_p_rnu; curwin->w_p_cul = false; curwin->w_p_cuc = false; - curwin->w_p_rnu = false; adjust_topline(s->term, buf, 0); // scroll to end // erase the unfocused cursor @@ -417,7 +415,6 @@ void terminal_enter(void) if (save_curwin == curwin) { // save_curwin may be invalid (window closed)! curwin->w_p_cul = save_w_p_cul; curwin->w_p_cuc = save_w_p_cuc; - curwin->w_p_rnu = save_w_p_rnu; } // draw the unfocused cursor |