aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/cmdline_highlight_spec.lua
Commit message (Collapse)AuthorAge
* ex_getln: Make error messages look betterZyX2017-08-14
|
* functests: Alter commentZyX2017-08-14
|
* functests: Check that input is correctly silencedZyX2017-08-14
|
* ex_getln: Cache highlight callback calling resultsZyX2017-07-26
|
* functests: Add sleep to <C-c> testZyX2017-07-18
|
* functests: Test input() nesting supportZyX2017-07-18
|
* functests: Check for previously unchecked 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.
* api helpers: Also save and restore did_emsgZyX2017-07-18
|
* 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.
* 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 “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.
* functests: Uncomment `{REDRAW}` part of “works” testZyX2017-06-28
|
* functests: Partially uncomment <C-c> testZyX2017-06-28
|
* ex_getln: Call highlight callback inside :tryZyX2017-06-28
|
* functests: Make “stops executing callback” test workZyX2017-06-28
| | | | Needed to be adjusted to use input() (previously relied on side-effects of executing `:cmd`) and dismiss something (hidden “Press ENTER” message?).
* functests: Make tests work with input()ZyX2017-06-27
| | | There are still some issues: specifically, new “pending” test hangs busted.
* functests: Comment out failing testZyX2017-06-27
|
* functests: Abstract away some ways to enter cmdline coloring modeZyX2017-06-27
| | | | Reason: should actually switch to using input() coloring because other coloring variants are eventually going away.
* eval,ex_getln: Add support for coloring input() promptsZyX2017-06-27
|
* ex_getln: Add some more tests, fix some found errorsZyX2017-06-27
|
* functests: Start adding some testsZyX2017-06-27