terminal: Leave 'relativenumber' alone (#8360)

ref #6796
This commit is contained in:
raichoo 2018-05-05 18:45:15 +02:00 committed by Justin M. Keyes
parent bcc9a74e48
commit 8ce6393048
2 changed files with 0 additions and 4 deletions

View File

@ -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

View File

@ -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