mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 07:48:18 +00:00
*: Move some dictionary functions to typval.h and use char*
Also fixes buffer reusage in setmatches() and complete().
This commit is contained in:
@@ -226,17 +226,17 @@ Terminal *terminal_open(TerminalOptions opts)
|
||||
rv->invalid_start = 0;
|
||||
rv->invalid_end = opts.height;
|
||||
refresh_screen(rv, curbuf);
|
||||
set_option_value((uint8_t *)"buftype", 0, (uint8_t *)"terminal", OPT_LOCAL);
|
||||
set_option_value("buftype", 0, "terminal", OPT_LOCAL);
|
||||
|
||||
// Default settings for terminal buffers
|
||||
curbuf->b_p_ma = false; // 'nomodifiable'
|
||||
curbuf->b_p_ul = -1; // 'undolevels'
|
||||
curbuf->b_p_scbk = p_scbk; // 'scrollback'
|
||||
curbuf->b_p_tw = 0; // 'textwidth'
|
||||
set_option_value((uint8_t *)"wrap", false, NULL, OPT_LOCAL);
|
||||
set_option_value((uint8_t *)"number", false, NULL, OPT_LOCAL);
|
||||
set_option_value((uint8_t *)"relativenumber", false, NULL, OPT_LOCAL);
|
||||
set_option_value((uint8_t *)"list", false, NULL, OPT_LOCAL);
|
||||
set_option_value("wrap", false, NULL, OPT_LOCAL);
|
||||
set_option_value("number", false, NULL, OPT_LOCAL);
|
||||
set_option_value("relativenumber", false, NULL, OPT_LOCAL);
|
||||
set_option_value("list", false, NULL, OPT_LOCAL);
|
||||
buf_set_term_title(curbuf, (char *)curbuf->b_ffname);
|
||||
RESET_BINDING(curwin);
|
||||
// Reset cursor in current window.
|
||||
|
Reference in New Issue
Block a user