aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.c
Commit message (Collapse)AuthorAge
...
| * vim-patch:8.0.1304: CTRL-G/CTRL-T don't work with incsearch and empty patternÖmer Sinan Ağacan2018-01-26
| | | | | | | | | | | | | | Problem: CTRL-G/CTRL-T don't work with incsearch and empty pattern. Solution: Use the last search pattern. (Christian Brabandt, closes vim/vim#2292) https://github.com/vim/vim/commit/d0480097177369a6ed91d47aba189ae647afcd68
| * vim-patch:8.0.1396: memory leak when CTRL-G in search command line failsÖmer Sinan Ağacan2018-01-26
| | | | | | | | | | | | | | Problem: Memory leak when CTRL-G in search command line fails. Solution: Move restore_last_search_pattern to after "if". https://github.com/vim/vim/commit/a1d5c154dbd5fbe317726bbf2ba99632b91878f4
| * vim-patch:8.0.1250Ömer Sinan Ağacan2018-01-26
| | | | | | | | | | | | | | | | | | Problem: 'hlsearch' highlighting not removed after incsearch (lacygoill) Solution: Redraw all windows. Start search at the end of the match. Improve how CTRL-G works with incremental search. Add tests. (Christian Brabandt, Hirohito Higashi, haya14busa, closes vim/vim#2267) https://github.com/vim/vim/commit/f8f8b2eadbaf3090fcfccbab560de5dbd501833d
| * vim-patch:8.0.1238Ömer Sinan Ağacan2018-01-26
| | | | | | | | | | | | | | | | Problem: Incremental search only shows one match. Solution: When 'incsearch' and and 'hlsearch' are both set highlight all matches. (haya14busa, closes vim/vim#2198) https://github.com/vim/vim/commit/2e51d9a0972080b087d566608472928d5b7b35d7
* | vim-patch:8.0.0528: highlight wrong text when 'wim' includes "longest" (#7927)Jakub Łuczyński2018-01-29
|/ | | | | | | | Problem: When 'wildmenu' is set and 'wildmode' has "longest" then the first file name is highlighted, even though the text shows the longest match. Solution: Do not highlight the first match. (LemonBoy, closes vim/vim#1602) https://github.com/vim/vim/commit/ef8eb0897819099fb00d675afb9bffe1d008c45e
* Merge #7863 'mingw64: fix gcc warnings'Justin M. Keyes2018-01-20
|\
| * Fix warning about conversion on mingw64George Zhao2018-01-18
| |
* | Add completion for :checkhealthMarco Hinz2018-01-18
|/
* vim-patch:8.0.0374: invalid memory access when using :sc in Ex mode (#7849)KunMing Xie2018-01-15
| | | | | | Problem: Invalid memory access when using :sc in Ex mode. (Dominique Pelle) Solution: Avoid the column being negative. Also fix a hang in Ex mode. https://github.com/vim/vim/commit/ba748c8a847561c043a63827bcb1d98bdebe16e6
* *: Fix test failuresZyX2017-12-11
|
* *: Hide list implementation in other files as wellZyX2017-12-10
|
* Merge #7234 'built-in expression parser'Justin M. Keyes2017-12-09
|\
| * Merge branch 'master' into expression-parserZyX2017-11-26
| |\
| * \ Merge branch 'master' into expression-parserZyX2017-11-19
| |\ \
| * | | 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.