aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.c
Commit message (Collapse)AuthorAge
...
* ex_getln: remove msg_scrolled cargo-cult magic, fixes #8251Björn Linse2018-06-02
|
* ex_getln: don't redraw statusline on top of scrolled messagesBjörn Linse2018-06-02
|
* wildmenu: close before redrawing statusline (#8453)Alexander Karle2018-06-02
| | | Fixes #8385
* UI: redraw statusline when entering cmdline (#8347)raichoo2018-05-10
|
* *: Fix clint errorsZyX2018-04-22
|
* ex_getln: Fix PVS/V547: function is stated to never return NULLZyX2018-04-15
|
* ex_getln: Fix PVS/V560: there are no longer NULL returns for OOMZyX2018-04-15
|
* Merge #4419 'implement <Cmd> key'Justin M. Keyes2018-03-24
|\
| * getchar: implement <Cmd> key to invoke command in any modeBjörn Linse2018-03-23
| |
* | refactor/rename: path_is_absolute()Justin M. Keyes2018-03-24
|/
* ex_getln: clear cmdline_block after it's freedBjörn Linse2018-02-14
|
* lintJustin M. Keyes2018-02-11
|
* vim-patch:8.0.1210: CTRL-G and CTRL-T are ignored with typeaheadJustin M. Keyes2018-02-11
| | | | | | | | | Problem: When typing a search pattern CTRL-G and CTRL-T are ignored when there is typeahead. Solution: Don't pass SEARCH_PEEK and don't call char_avail(). (haya14busa, closes vim/vim#2233) https://github.com/vim/vim/commit/f8e8c0643b1cd97db11912bc4f773e1328a0da02
* vim-patch:8.0.0692: CTRL-G with 'incsearch' and ? goes in the wrong directionJustin M. Keyes2018-02-11
| | | | | | | | Problem: Using CTRL-G with 'incsearch' and ? goes in the wrong direction. (Ramel Eshed) Solution: Adjust search_start. (Christian Brabandt) https://github.com/vim/vim/commit/da5116da4586fc714434411d2cccb066caa3723e
* vim-patch:8.0.0689: ~ character not escaped when extending search patternJustin M. Keyes2018-02-11
| | | | | | | | Problem: The ~ character is not escaped when adding to the search pattern with CTRL-L. (Ramel Eshed) Solution: Escape the character. (Christian Brabandt) https://github.com/vim/vim/commit/a693d0584b9a7ccce98813dda3a6badb209904c7
* ui/tui: highlighting refactorBjörn Linse2018-02-11
| | | | | | | | Make HlAttr contain highlighting state for both color modes (cterm and rgb). This allows us to implement termguicolors completely in the TUI. Simplify some logic duplicated between ui.c and screen.c. Also avoid some superfluous highlighting reset events.
* Merge #7463 'incsearch + hlsearch highlight all'Justin M. Keyes2018-02-01
|\
| * vim-patch:8.0.1393: too much highlighting with 'hlsearch' and 'incsearch' setÖmer Sinan Ağacan2018-01-26
| | | | | | | | | | | | | | Problem: Too much highlighting with 'hlsearch' and 'incsearch' set. Solution: Do not highlight matches when the pattern matches everything. https://github.com/vim/vim/commit/6621605eb97cf5fbc481282fd4d349a76e168f16
| * 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
| |