aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.c
Commit message (Collapse)AuthorAge
...
* | api helpers: Save/restore more values in try_enter/try_leaveZyX2017-07-16
| | | | | | | | This fixes memory leak reported by ASAN. This also somehow fixes test40, though I have no idea why except that that test yields memory leak report.
* | Merge branch 'master' into colored-cmdlineZyX2017-07-15
|\|
| * ex_getln: Silent V519: value is assigned twice successivelyZyX2017-07-04
| | | | | | This is usual “passing data via global” false positive.
| * ex_getln: Lint command_line_handle_key readability/fn_sizeJames McCoy2017-06-26
| | | | | | | | | | Create new functions to handle moving to the next incsearch match or matching history index.
| * vim-patch:7.4.2320James McCoy2017-06-26
| | | | | | | | | | | | | | | | | | Problem: Redraw problem when using 'incsearch'. Solution: Save the current view when deleting characters. (Christian Brabandt) Fix that the '" mark is set in the wrong position. Don't change the search start when using BS. https://github.com/vim/vim/commit/dda933d06c06c2792bd686d059f6ad19191ad30b
| * vim-patch:7.4.2318James McCoy2017-06-26
| | | | | | | | | | | | | | | | Problem: When 'incsearch' is not set CTRL-T and CTRL-G are not inserted as before. Solution: Move vim/vim#ifdef and don't use goto. https://github.com/vim/vim/commit/349e7d94e6bbb253bb87adad9039f095128ab543
| * vim-patch:7.4.2268James McCoy2017-06-26
| | | | | | | | | | | | | | Problem: Using CTRL-N and CTRL-P for incsearch shadows completion keys. Solution: Use CTRL-T and CTRL-G instead. https://github.com/vim/vim/commit/1195669f9e434fa9ab8b57ee9470bf951e4990b8
| * vim-patch:7.4.2259raichoo2017-06-26
| | | | | | | | | | | | | | | | Problem: With 'incsearch' can only see the next match. Solution: Make CTRL-N/CTRL-P move to the previous/next match. (Christian Brabandt) https://github.com/vim/vim/commit/4d6f32cbfbaf324ac4a25c0206a5db0e9f7a48f7
* | ex_getln: Save and restore try stateZyX2017-07-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: when processing cycle such as :for pat in [' \ze*', ' \zs*'] : try : let l = matchlist('x x', pat) : $put ='E888 NOT detected for ' . pat : catch : $put ='E888 detected for ' . pat : endtry :endfor `:let l = …` throwing an error causes this error to be caught after color_cmdline attempts to get callback for highlighting next line (the one with `$put = 'E888 NOT…`). Saving/restoring state prevents this from happening.
* | ex_getln: Do not make <C-c> interrupt input() after interrupting hl cbZyX2017-06-28
| |
* | ex_getln: Fix indentZyX2017-06-28
| |
* | ex_getln: Make sure standard error reporting facility is not usedZyX2017-06-28
| |
* | ex_getln: Fix “echoerr msg not shown” problemZyX2017-06-28
| | | | | | | | | | This also attempted to fix problem with cancelling input() on error by avoiding standard error printing facilities (assumed thrown error message is the problem), but with no luck so far.
* | ex_getln: Call highlight callback inside :tryZyX2017-06-28
| |
* | ex_getln: Enable coloring for expression modeZyX2017-06-27
| |
* | eval,ex_getln: Add support for coloring input() promptsZyX2017-06-27
| |
* | ex_getln: Add some more tests, fix some found errorsZyX2017-06-27
| |
* | ex_getln: Add basic support for coloring command-line promptZyX2017-06-27
| |
* | ex_getln: Do not do arabic shaping unless neededZyX2017-06-27
| | | | | | | | | | Should speed up execution without arabic characters a bit, slowing down with arabic characters. More necessary, this allows coloring prompt without caring about arabic shaping at the first iteration.
* | ex_getln: Clean up draw_cmdline a bitZyX2017-06-27
|/
* Merge remote-tracking branch 'origin/master' into vim-7.4.1975James McCoy2017-06-06
|\
| * vim-patch:8.0.0360James McCoy2017-06-06
| | | | | | | | | | | | | | Problem: Sometimes VimL is used, which is confusing. Solution: Consistently use "Vim script". (Hirohito Higashi) https://github.com/vim/vim/commit/b544f3c81f1e6a50322855681ac266ffaa8e313c
* | vim-patch:7.4.1976James McCoy2017-06-04
|/ | | | | | | Problem: Number variables are not 64 bits while they could be. Solution: Add the num64 feature. (Ken Takata) https://github.com/vim/vim/commit/22fcfad29276bd5f317faf516637dcd491b96a12
* lint: fix indentation of FUNC_ATTR linesBjörn Linse2017-06-03
|
* Merge pull request #6514 from jamessan/gcc-7-fixesJames McCoy2017-05-13
|\ | | | | Fix GCC 7 issues
| * *: Comment intentional fallthroughsJames McCoy2017-05-12
| | | | | | | | | | Falling through a switch case should be commented so it's clear that behavior is intentional.
* | ex_getln: Fix :lang code execution when skippingZyX2017-05-13
|/ | | | Fixes #6727
* Merge branch 'master' into luaviml'/luaZyX2017-05-08
|\
| * Use vim_strchr(s, c) when c may be NUL (#6656)James McCoy2017-05-03
| | | | | | | | | | | | | | | | | | | | | | As part of the refactoring in #5119, some vim_strchr() were changed to strchr(). However, vim_strchr() behaves differently than strchr() when c is NUL, returning NULL instead of a pointer to the NUL. Revert the strchr() calls where it isn't known whether c is NUL, since this causes a semantic change the surrounding code doesn't expect. In the case of #6650, this led to a heap overrun. Closes #6650
| * Merge #6539 'More cursor shape modes'Justin M. Keyes2017-04-21
| |\
| | * ui: support more cursor shape modesBjörn Linse2017-04-21
| | | | | | | | | | | | throttle unneccessary cursor shape events
| * | *: Add comment to all C filesZyX2017-04-19
| |/
| * refactor: pos_T macros to functions (#6496)Felipe Oliveira Carvalho2017-04-11
| |
* | Merge branch 'master' into luaviml'/luaZyX2017-04-10
|\|
| * mbyte: replace vim_tolower with mb_tolower handling locale correctlyBjörn Linse2017-04-10
| |
* | Merge branch 'master' into luaviml'/luaZyX2017-04-08
|\|
| * *: Use const char * in set_one_cmd_contextZyX2017-03-29
| | | | | | Also renames functions added in master and renamed here.
| * *: Fix some Windows-specific warningsZyX2017-03-29
| | | | | | | | Also fixed an error in path_fnamecmp().
| * eval: Move remaining get_tv_string* functions to eval/typval.cZyX2017-03-29
| |
| * eval,*: Move get_tv_string to typval.cZyX2017-03-29
| | | | | | | | Function was renamed and changed to return `const char *`.
| * *: Move some dictionary functions to typval.h and use char*ZyX2017-03-29
| | | | | | | | Also fixes buffer reusage in setmatches() and complete().
| * eval: Split eval.c into smaller filesZyX2017-03-29
| |
| * vim-patch:7.4.2357 (#6354)raichoo2017-03-26
| | | | | | | | | | | | Problem: Attempt to read history entry while not initialized. Solution: Skip when the index is negative. https://github.com/vim/vim/commit/46643713dc6bb04b4e84986b1763ef309e960161
* | ex_getln: Refactor script_get()ZyX2017-03-27
|/ | | | | | | | | | | | | | 1. Use `char *` for strings. 2. Add `const` qualifiers. 3. Add attributes and documentation. 4. Handle skipping *inside*. 5. Handle non-heredoc argument also inside: deferring this to the caller is pointless because all callers need the same thing. Though new ex_lua caller may live without allocations in this case, allocating nevertheless produces cleaner code. 6. Note that all callers call script_get with `eap` and `eap->arg`. Thus second argument is useless in practice: it is one and the same always and can be reached through the first argument.
* refactor: Remove allow_keys global (#6346)Matthew Malcomson2017-03-25
| | | | | | * The allow_keys global is unused in nvim, remove it * clint
* vim-patch:8.0.0172Justin M. Keyes2017-03-22
| | | | | | | | Problem: The command selected in the command line window is not executed. (Andrey Starodubtsev) Solution: Save and restore the command line at a lower level. (closes vim/vim#1370) https://github.com/vim/vim/commit/1d669c233c97486555a34f7d3f069068d9ebdb63
* vim-patch:8.0.0159Justin M. Keyes2017-03-22
| | | | | | | | | | | References #5406 Problem: Using a NULL pointer when using feedkeys() to trigger drawing a tabline. Solution: Skip drawing a tabline if TabPageIdxs is NULL. (Dominique Pelle) Also fix recursing into getcmdline() from the cmd window. https://github.com/vim/vim/commit/c695cec4698b41d7b9555efdd47dda9b1945d3ae
* *: Fix linter errorsZyX2017-02-15
|
* *: Partial string handling refactoringZyX2017-02-15
| | | | | | | | Main points: - Replace `char_u` with `char` in some cases. - Remove `str[len] = NUL` hack in some cases when `str` may be considered `const`.
* vim-patch:7.4.2024Marco Hinz2017-02-04
| | | | | | | | | | Problem: More buf_valid() calls can be optimized. Solution: Use bufref_valid() instead. NOTE: Some changes related to channels and the Python and Netbeans interfaces were obviously left out. https://github.com/vim/vim/commit/7c0a2f367f2507669560b1a66423155c70d2e75b