Björn Linse
baf93d9606
UI: always use contrete colors for default_colors_set
...
But add an escape hatch needed for external TUI, so it still can use
terminal emulator defaults.
2019-02-05 19:41:38 +01:00
Justin M. Keyes
36378c33c6
Merge #9560 from justinmk/Wmissing-prototypes
2019-02-04 19:40:14 +01:00
Justin M. Keyes
45f25f7e0b
build: PRAGMA_DIAG_PUSH_IGNORE_MISSING_PROTOTYPES
...
On Travis CI, -Wmissing-prototypes gives strange error:
In file included from ../src/nvim/eval.c:5965:
/home/travis/build/neovim/neovim/build/src/nvim/auto/funcs.generated.h.gperf:215:1: error: conflicting types for 'find_internal_func_gperf'
find_internal_func_gperf (register const char *str, register unsigned int len)
^
../src/nvim/eval.c:5962:20: note: previous declaration is here
const VimLFuncDef *find_internal_func_gperf(register const char *str,
^
2019-02-04 13:16:59 +01:00
Justin M. Keyes
f2c6164b04
build: -Wmissing-prototypes
...
ref #343
Though I don't see a strong benefit, it isn't too much of a burden, and
maybe avoids confusion in some cases.
2019-02-04 04:00:20 +01:00
Marco Hinz
91688b4883
options: set 'scrollback' to -1 by default #9563
...
Makes the 'scrollback' option more consistent (same default for all buffers) and future-proof.
- Default to -1 for all buffers, but treat it as an implementation detail.
- Document range of 1 - 100_000.
- New terminal buffer by default sets scrollback=10_000 if the global default is -1.
- Existing terminal buffer: On entering terminal-mode or on refresh, if the user explicitly did `:set[local] scbk=-1`, the local value goes to 100_000 (max). (This is undocumented on purpose. Users should work with explicit values in the range of 1-100_000.)
2019-02-04 02:53:23 +01:00
Marco Hinz
70f6939fd4
events: add "Signal" event #9564
...
..which gets triggered when SIGUSR1 is sent to the nvim process.
Closes #9562
2019-02-04 02:39:05 +01:00
Björn Linse
da88278f27
Merge pull request #9579 from bfredl/pum_fix
...
popupmenu: fix alignment of kind and extra after #9530
2019-02-03 22:17:28 +01:00
Justin M. Keyes
08155e2b53
Merge #9578 'vim-patch:8.0.{1045,1073,1077,1114}'
2019-02-03 21:36:32 +01:00
Björn Linse
81ac8e9015
popupmenu: fix alignment of kind and extra after #9530
2019-02-03 20:43:23 +01:00
Justin M. Keyes
01b4efe9d9
rename ui_is_external to ui_has ( #9576 )
2019-02-03 16:42:44 +01:00
Jan Edmund Lazo
5a40abe2d5
vim-patch:8.0.1114: default for 'iminsert' is annoying
...
Problem: Default for 'iminsert' is annoying.
Solution: Make the default always zero. (Yasuhiro Matsumoto, closes vim/vim#2071 )
4cf56bbc85
2019-02-03 09:52:13 -05:00
Jan Edmund Lazo
c1ef241390
vim-patch:8.0.1073: may get an endless loop if 'statusline' changes a highlight
...
Problem: May get an endless loop if 'statusline' changes a highlight.
Solution: Do not let evaluating 'statusline' trigger a redraw.
ba2929b6af
2019-02-03 08:32:51 -05:00
Björn Linse
79a0ea2bec
Merge pull request #9530 from bfredl/pum_float
...
Implement popupmenu as a floating grid internally to reduce flicker
2019-02-02 21:27:09 +01:00
Björn Linse
0f96a21e3f
multigrid: reset win scrolling after swap message
2019-02-02 16:31:49 +01:00
Björn Linse
69bdc4f072
ui/compositor: add redraws needed due to intersected doublewidth chars.
2019-02-02 16:31:49 +01:00
Björn Linse
2405cf8255
vim-patch:8.1.0792: bad display if opening cmdline window from Insert completion
2019-02-02 16:31:49 +01:00
Björn Linse
2c01e79dc4
Reduce pum redraws from edit.c by delaying undisplay of pum
...
This makes it possible for the compositor to compare the old pum with
the new position, and only clear what is necessary.
2019-02-02 16:31:49 +01:00
Björn Linse
31cbd34d97
UI: add "compositor" layer to merge grids for TUI use in a correct way
...
Initially we will use this for the popupmenu, floating windows will
follow soon
NB: writedelay + compositor is weird, we need more flexible
redraw introspection.
2019-02-02 16:31:49 +01:00
Jan Edmund Lazo
29db365e4c
vim-patch:8.0.1045: running tests may pollute shell history
...
Problem: Running tests may pollute shell history. (Manuel Ortega)
Solution: Make $HISTFILE empty.
6a8691d483
2019-02-02 07:38:53 -05:00
KillTheMule
f89d0d8230
inccommand: auto-disable if folding is slow #9568
...
Fixes #9557
2019-02-01 01:40:01 +01:00
Andrew Pyatkov
894f6bee54
:terminal : set topline based on window height #8325
...
closes #8324
closes #8556
2019-01-29 03:00:48 +01:00
Marco Hinz
28f87c505d
Merge #9539 "options: make 'listchars' and 'fillchars' local to window"
2019-01-28 00:45:59 +01:00
Björn Linse
de16c0bf64
screen: simplify wp->w_lines allocation logic
2019-01-27 12:07:06 +01:00
Björn Linse
30bd1c1e85
terminal: handle size when switching buffers in window
2019-01-27 12:07:06 +01:00
Björn Linse
2ab70cb55c
window/ui: reorganize size variables, fix terminal window size with multigrid.
...
wp->w_height_inner now contains the "inner" size, regardless if the
window has been drawn yet or not. It should be used instead of
wp->w_grid.Rows, for stuff that is not directly related to accessing
the allocated grid memory, such like cursor movement and terminal size
2019-01-27 12:07:06 +01:00
Björn Linse
80b75bc99a
screen: remove superfluous default_grid indirection for global size
...
This was changed by mistake in multigrid PR.
default_grid.Rows rather corresponds to the old screen_Rows
2019-01-27 12:07:06 +01:00
Björn Linse
d9406f4b64
terminal: simplify sizing logic
2019-01-27 12:07:06 +01:00
ckelsel
f2398a766e
vim-patch:8.0.0413: menu test fails on MS-Windows #8173
...
Problem: Menu test fails on MS-Windows using gvim.
Solution: First delete the English menus.
a1c8ecfda9
2019-01-27 01:35:00 +01:00
Justin M. Keyes
1a3d2dbfe7
menu_get(): fix query behavior
...
- Return the menu properties, not only its children.
- If the {path} param is given, return only the first node. The "next"
nodes in the linked-list are irrelevant.
2019-01-27 00:51:58 +01:00
Justin M. Keyes
d760e08fac
menu_get(): Do not include empty items
...
Caused by a typo: `dict` instead of `dic`. Renamed variable to `d` to
make it less similar.
2019-01-27 00:51:58 +01:00
Justin M. Keyes
827ed144fb
fix ":menu Item.SubItem"
...
:menu should print sub-menu contents. E.g. this should print the
"File.Save" submenu:
nvim -u NORC
:source $VIMRUNTIME/menu.vim
:menu File.Save
Regressed in dc685387a3
Blocks #8173
menu_get() also was missing some results for some cases.
2019-01-27 00:51:58 +01:00
Justin M. Keyes
d63b534f31
Merge #9478 from justinmk/doc
2019-01-26 21:41:01 +01:00
Justin M. Keyes
c70c8b607f
doc [ci skip] #9478
...
- Lua
- developer guidelines
- MAINTAIN.md
- TUI: cleanup
- TUI: mention Windows terminfo builtins
- cleanup if_pyth, redirect python-bindeval tag
Helped-by: Björn Linse <bjorn.linse@gmail.com >
Helped-by: erw7 <erw7.github@gmail.com >
2019-01-26 20:38:14 +01:00
Marco Hinz
2ae97f3d4c
vim-patch:8.1.0759: showing two characters for tab is limited
...
Problem: Showing two characters for tab is limited.
Solution: Allow for a third character for "tab:" in 'listchars'. (Nathaniel
Braun, Ken Takata, closes vim/vim#3810 )
83a52171ba
2019-01-26 14:45:48 +01:00
Marco Hinz
2418aa3a4a
linter: fix issues
2019-01-26 14:45:48 +01:00
Marco Hinz
352811fe5f
options: make 'fillchars'/'listchars' local to window
...
Using 'listchars' is a nice way to highlight tabs that were included by accident
for buffers that set 'expandtab'.
But maybe one does not want this for buffers that set 'noexpandtab', so now one
can use:
autocmd FileType go let &l:listchars .= ',tab: '
2019-01-26 14:45:47 +01:00
Jan Edmund Lazo
64f91fa1fd
vim-patch:8.0.0412: menu test fails on MS-Windows
...
Problem: Menu test fails on MS-Windows.
Solution: Use a menu entry with only ASCII characters.
5558d19432
2019-01-26 08:44:30 -05:00
Jan Edmund Lazo
1338702b2b
vim-patch:8.0.0411: menu translations don't match when case is changed.
...
Problem: We can't change the case in menu entries, it breaks translations.
Solution: Ignore case when looking up a menu translation.
11dd8c1201
2019-01-26 08:43:57 -05:00
Björn Linse
27b7813025
cleanup: reduce some duplicate code, avoid function pointers for a condition
...
Add 'multiline' flag to history for correct :messages output
Use larger buffer size for multiline messages. if this turns out to not
be enough, we could do size calculation like api_set_error
2019-01-23 19:34:13 +01:00
Alexandre Dubray
67bac681ea
ex_echo: reuse code from message.c to show arg to user
2019-01-22 20:16:12 +01:00
Alexandre Dubray
7f2e43c637
message.c: add msg_echo_attr functions, use it for lua error messages
...
The added function behaves like the non-echo function but display message
in a echo-style way (i.e. tab and newline are preserved)
2019-01-22 20:15:27 +01:00
Justin M. Keyes
bfb8170d32
PVS/V1028 (rework): cast operands, not the result #9531
...
closes #9522
2019-01-21 23:49:58 +01:00
Justin M. Keyes
226352afcb
build: Fix -Wconversion warnings for fpclassify et al
...
closes #8274
The parent commit tries a different approach, but that fails on Apple
Clang version:
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: x86_64-apple-darwin17.7.0
which somehow compiles the check_c_source_compiles() check, but then
complains during later compilation that __fpclassify is not defined
(regardless of "#include <math.h>").
2019-01-21 00:32:34 +01:00
Justin M. Keyes
c6a039d087
build: Fix -Wconversion warnings for fpclassify et al
...
closes #8274
- Instead of #undef and re-#define, define "xfoo" wrappers to avoid
include-order sensitivity.
- The warnings are bogus, caused by bad interaction between glibc and
clang 6+.
- https://bugs.llvm.org/show_bug.cgi?id=35268
- https://bugs.llvm.org/show_bug.cgi?id=39738
- https://bugzilla.redhat.com/show_bug.cgi?id=1472437
2019-01-20 23:51:12 +01:00
James McCoy
7e3300f717
Merge pull request #9526 from jamessan/remove-jemalloc
...
Remove support for using jemalloc instead of the system allocator
2019-01-20 13:58:38 -05:00
Björn Linse
62254d2cc0
Merge pull request #9429 from bfredl/grid_mouse
...
API/UI: add nvim_input_mouse() including multigrid mouse support
2019-01-20 13:36:20 +01:00
Björn Linse
a2be9c7218
ui: multigrid mouse support
2019-01-20 10:32:05 +01:00
Justin M. Keyes
c11b79ce51
STRICT_ADD, STRICT_SUB: Log error before abort
2019-01-20 00:18:39 +01:00
Justin M. Keyes
dbba685c69
build: include auto/config.h explicitly
...
Otherwise the symbols defined in config/config.h.in may not be defined,
depending on include-order.
2019-01-20 00:18:39 +01:00
James McCoy
c2343180d7
Remove support for using jemalloc instead of the system allocator
...
There was never any investigation done to determine whether using
jemalloc was actually a net benefit for nvim. It has been a portability
limitation and adds another factor to consider when triaging issues.
2019-01-19 18:09:52 -05:00