term: enable reverse wrap-around by default

Since we’re now doing reverse auto-wrapping by default, we add
‘bw’ (‘auto_left_margin’)to terminfo.
This commit is contained in:
Daniel Eklöf 2020-10-06 18:42:26 +02:00
parent 71c54fb87c
commit 207b24538d
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 6 additions and 2 deletions

View file

@ -904,6 +904,7 @@ term_init(const struct config *conf, struct fdm *fdm, struct reaper *reaper,
: FCFT_SUBPIXEL_NONE),
.cursor_keys_mode = CURSOR_KEYS_NORMAL,
.keypad_keys_mode = KEYPAD_NUMERICAL,
.reverse_wrap = true,
.auto_margin = true,
.window_title_stack = tll_init(),
.scale = 1,
@ -1394,6 +1395,7 @@ term_reset(struct terminal *term, bool hard)
term->keypad_keys_mode = KEYPAD_NUMERICAL;
term->reverse = false;
term->hide_cursor = false;
term->reverse_wrap = true;
term->auto_margin = true;
term->insert_mode = false;
term->bracketed_paste = false;