aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.c
Commit message (Collapse)AuthorAge
...
* 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.
* | 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
|\|