aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.c
Commit message (Collapse)AuthorAge
...
| * | | ex_getln: Fix memory leak in color_expr_cmdlineZyX2017-11-19
| | | |
| * | | Merge branch 'master' into expression-parserZyX2017-11-06
| |\ \ \
| * | | | *: Fix some typos found by oni-linkZyX2017-11-06
| | | | |
| * | | | ex_getln: Fix variable name which is wrong after the mergeZyX2017-10-30
| | | | |
| * | | | Merge branch 'master' into expression-parserZyX2017-10-30
| |\ \ \ \
| * | | | | ex_getln: Make use of new parser to color expressionsZyX2017-10-29
| | | | | | | | | | | | | | | | | | Retires g:Nvim_color_expr callback.
* | | | | | ui: fix glitch with both ext_cmdline and cmd_wildmenuBjörn Linse2017-12-06
| |_|_|_|/ |/| | | |
* | | | | cmdline: CmdlineEnter and CmdlineLeave autocommands (#7422)Björn Linse2017-11-22
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | vim-patch:fafcf0dd59fd patch 8.0.1206: no autocmd for entering or leaving the command line Problem: No autocmd for entering or leaving the command line. Solution: Add CmdlineEnter and CmdlineLeave. https://github.com/vim/vim/commit/fafcf0dd59fd9c4ef743bb333ae40d1d322b6079
* | | | vim-patch:8.0.0237 (#7531)KunMing Xie2017-11-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: When setting wildoptions=tagfile the completion context is not set correctly. (desjardins) Solution: Check for EXPAND_TAGS_LISTFILES. (Christian Brabandt, closes vim/vim#1399) https://github.com/vim/vim/commit/ba47b51ff88d91c9bb5aa522183e23a656865697
* | | | ui: remove ext_cmdline noise (#7486)Björn Linse2017-11-07
| |_|/ |/| | | | | | | | | | | Only send cmdline contents once per ui_flush. Don't send extra redraws due to 'arshape', it makes no difference to external ui.
* | | Merge #7454 'ui: ext_wildmenu'Justin M. Keyes2017-10-31
|\ \ \ | | | | | | | | | | | | | | | | closes #6168 ref #5686
| * | | ui: allow external ui to draw wildmenuDongdong Zhou2017-10-29
| | |/ | |/| | | | | | | | | | Co-authored-by: Björn Linse <bjorn.linse@gmail.com> Updated docs and tests.
* / | pvs/V575: false positive (#7462)Justin M. Keyes2017-10-30
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ./src/nvim/ex_getln.c:2787:1: error: V575 The 'memcpy' function doesn't copy the whole string. Use 'strcpy / strcpy_s' function to preserve terminal null. We could instead "trick" PVS like this: diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index e79476ab532a..295630693b27 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -2782,9 +2782,10 @@ static void ui_ext_cmdline_show(CmdlineInfo *line) void ui_ext_cmdline_block_append(int indent, const char *line) { - char *buf = xmallocz(indent + strlen(line)); + size_t linelen = strlen(line); + char *buf = xmallocz(indent + linelen); memset(buf, ' ', indent); - memcpy(buf+indent, line, strlen(line)); + memcpy(buf + indent, line, linelen); Array item = ARRAY_DICT_INIT; ADD(item, DICTIONARY_OBJ((Dictionary)ARRAY_DICT_INIT));
* | ext_cmdline: fix inputsecret()Björn Linse2017-10-26
| |
* | ext_cmdline: interact with cmdline windowBjörn Linse2017-10-26
| |
* | ext_cmdline: implement redraw!Björn Linse2017-10-26
| |
* | ext_cmdline: turn nested cmdlines into a linked listBjörn Linse2017-10-26
| |
* | ext_cmdline: rename cmdline_char to cmdline_special_charBjörn Linse2017-10-26
| |
* | ext_cmdline: extend "function" to generic "block" mechanismBjörn Linse2017-10-26
| |
* | ext_cmdline: disable some redrawsBjörn Linse2017-10-26
| |
* | ext_cmdline: add support for highlightingBjörn Linse2017-10-26
| |
* | ext_cmdline: lintDongdong Zhou2017-10-26
| |
* | ext_cmdline: added indentDongdong Zhou2017-10-26
| |
* | ext_cmdline: added cmdline levelDongdong Zhou2017-10-26
| | | | | | | | add cchar_to_string
* | ext_cmdline: change to use ui_callDongdong Zhou2017-10-26
| |
* | ext_cmdline: fix firstc, change cmdline_leave to cmdline_hideDongdong Zhou2017-10-26
| |
* | ext_cmdline: change the content formatDongdong Zhou2017-10-26
| |
* | ext_cmdline: use standard external ui functionsDongdong Zhou2017-10-26
| |
* | ext_cmdline: lintDongdong Zhou2017-10-26
| |
* | ext_cmdline: add testsDongdong Zhou2017-10-26
| |
* | ext_cmdline: Added cmdline promptDongdong Zhou2017-10-26
| |
* | ext_cmdline: allow external ui to draw cmdlineDongdong Zhou2017-10-26
|/
* ops: save and restore clipboard batch status when entering cmdline windowBjörn Linse2017-10-15
|
* getcmdline_prompt: Temporarily disable msg_silent so prompt is displayedJames McCoy2017-10-14
| | | | | vim-patch:7.4.1636 Closes #7378
* eventloop: restore redraw in cmdline K_EVENT handlerJustin M. Keyes2017-09-05
| | | | Restores behavior from commit: 02e86ef04cc1
* eventloop: do not redraw in cmdline K_EVENT handlerJustin M. Keyes2017-09-05
| | | | | If :echo is done by an timer or event (such as FocusGained/FocusLost), redrawcmdline() clobbers it.
* eventloop: FocusGained: schedule event instead of pseudokeyJustin M. Keyes2017-09-05
| | | | | closes #4840 closes #6164
* ex_getln: Make error messages look betterZyX2017-08-14
|
* Merge branch 'master' into colored-cmdlineZyX2017-08-06
|\
| * build: silence maybe-uninitialized warningJustin M. Keyes2017-08-06
| | | | | | | | False positive. From C:\msys64\mingw64\bin\gcc.exe (appveyor CI)
| * terminal: block redraw during c_CTRL-DJustin M. Keyes2017-08-05
| | | | | | | | | | | | | | | | Unlike the normal wildmenu, the CTRL-D wild-list is not restored by statusline redraw. (Semantics: ^D is controlled by 'wildoptions' option, so it's in the "wild..." family.) TODO: externalize the c_CTRL-D wild-list.
* | Merge branch 'master' into colored-cmdlineZyX2017-07-31
|\|
| * vim-patch:8.0.0034Jurica Bradaric2017-07-25
| | | | | | | | | | | | | | Problem: No completion for ":messages". Solution: Complete "clear" argument. (Hirohito Higashi) https://github.com/vim/vim/commit/9e507ca8a3e1535e62de4bd86374b0fcd18ef5b8
* | ex_getln: Cache highlight callback calling resultsZyX2017-07-26
| |
* | ex_getln: Avoid GCC “unused variable” warning from QBZyX2017-07-18
| | | | | | | | | | | | | | 17:25:45,363 WARN - /home/quickbuild/buildagent/workspace/root/neovim/pull-requests-automated/src/nvim/ex_getln.c: In function ‘color_cmdline’: 17:25:45,363 WARN - /home/quickbuild/buildagent/workspace/root/neovim/pull-requests-automated/src/nvim/ex_getln.c:2335:8: error: variable ‘printed_errmsg’ set but not used [-Werror=unused-but-set-variable] 17:25:45,363 WARN - bool printed_errmsg = false; 17:25:45,363 WARN - ^ 17:25:45,399 WARN - cc1: all warnings being treated as errors
* | *: Fix clint errorsZyX2017-07-18
| |
* | ex_getln: Check prev_prompt_errors before running redrawcmdlineZyX2017-07-18
| | | | | | | | Otherwise there will be infinite recursion and shortly a crash. Running redrawcmdline recursively occurs under color_cmdline_error label.
* | ex_getln: Replace global with entry in save_cclineZyX2017-07-17
| |
* | ex_getln: Do not do useless try_enter/try_leave callsZyX2017-07-17
| | | | | | | | These are actually needed for two modes only. And even for these modes they should eventually go away.
* | ex_getln: Do not goto color_cmdline_end without first cleaning upZyX2017-07-17
| | | | | | | | | | | | | | The issue with debug mode was actually not cleaning up after `try_enter`: location `&tstate` was pointing to got invalidated and received some “garbage” (actually, values that got stored on the stack afterwards). But pointer to that garbage was still stored in `msg_list`, so next attempt to check it resulted in a crash.