aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
| * | | | | | | | | | | | keymap: Remove incorrect castZyX2017-10-16
| | | | | | | | | | | | |
| * | | | | | | | | | | | klee: Update key_name_entry tableZyX2017-10-16
| | | | | | | | | | | | |
| * | | | | | | | | | | | klee: Include colors in testZyX2017-10-16
| | | | | | | | | | | | |
| * | | | | | | | | | | | viml/parser/expressions: Highlight prefix separately from numberZyX2017-10-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Should make accidental octals more visible.
| * | | | | | | | | | | | charset: Do not call strlen() from vim_str2nrZyX2017-10-16
| | | | | | | | | | | | |
| * | | | | | | | | | | | charset: Avoid overflow in vim_str2nrZyX2017-10-16
| | | | | | | | | | | | |
| * | | | | | | | | | | | viml/parser/expressions: Define east_node_type_tab only when neededZyX2017-10-15
| | | | | | | | | | | | |
| * | | | | | | | | | | | keymap: Readd figure braces disappeared when resolving conflictsZyX2017-10-15
| | | | | | | | | | | | |
| * | | | | | | | | | | | Merge branch 'master' into expression-parserZyX2017-10-15
| |\ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | viml/parser/expressions,klee: Fix some problems found by KLEE runZyX2017-10-15
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | charset: Fix out-of-bounds array accessZyX2017-10-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is incorrect to *first* access ptr[2] and *then* check whether maxlen allows it.
| * | | | | | | | | | | | | viml/parser/expressions: Update some comments and add another checkZyX2017-10-15
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | viml/parser/expressions,tests: Add AST freeing, with sanity checksZyX2017-10-15
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | viml/parser/expressions: Create tests for latest additionsZyX2017-10-15
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | viml/parser/expressions: Finish parserZyX2017-10-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note: formatc.lua was unable to swallow some newer additions to ExprASTNodeType (specifically `kExprNodeOr = '|'` and probably something else), so all `= …` were dropped: in any case they only were there in order to not bother updating viml_pexpr_debug_print_ast_node and since it is now known all nodes which will be present it is not much of an issue.
| * | | | | | | | | | | | | viml/parser/expressions: Add support for string parsingZyX2017-10-15
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | keymap: Lint some functions to be copied for symbolic testsZyX2017-10-15
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | edit: Lint some functions which are to be copied for symbolic testsZyX2017-10-15
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | mbyte: Lint some functions which are to be copied for symbolic testsZyX2017-10-15
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | viml/parser/expressions: Add support for subscript and list literalsZyX2017-10-15
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | viml/parser/expressions: Error out on multiple colons in a rowZyX2017-10-15
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | viml/parser/expressions: Add support for the dot operator and numbersZyX2017-10-15
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | viml/parser/expressions: Make lexer parse numbers, support non-decimalZyX2017-10-15
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | viml/parser/expressions: Forbid dot or alpha characters after a floatZyX2017-10-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is basically what Vim already does, in addition to forbidding floats should there be a concat immediately before it.
| * | | | | | | | | | | | | viml/parser/expressions: Add support for comparison operatorsZyX2017-10-15
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | viml/parser/expressions: Make sure that arrows outside lambda throwZyX2017-10-15
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | viml/parser/expressions: Add support for ternary operatorZyX2017-10-15
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | viml/parser/expressions: Fix determining invalid commas/colonsZyX2017-10-15
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | viml/parser/expressions: Fix call inside nested parenthesisZyX2017-10-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It may have incorrectly tried to call everything because of essentially “value” nodes being treated as not such.
| * | | | | | | | | | | | | viml/parser/expressions: Add a way to represent tokens from C codeZyX2017-10-15
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | viml/parser/expressions: Add a way to adjust lexerZyX2017-10-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It also adds support for kExprLexOr which for some reason was forgotten. It was only made sure that KLEE test compiles in non-KLEE mode, not that something works or that KLEE is able to run tests.
| * | | | | | | | | | | | | viml/parser/expressions: Make curly braces name actually workZyX2017-10-08
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | viml/parser/expressions: Make commas actually work when callingZyX2017-10-08
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | viml/parser/expressions: Make commas actually work when callingZyX2017-10-08
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | viml/parser/expressions: Add support for figure braces (three kinds)ZyX2017-10-08
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | klee: Start preparing for klee testsZyX2017-10-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | First stage: something compiling without klee, but with a buch of dirty hacks - done. Second stage: something running under klee, able to emit useful results, but still using dirty hacks - done. Third stage: make CMake care about clang argumnets - not done, may be omitted if proves to be too hard. Not that klee can be run on CI in any case.
| * | | | | | | | | | | | | viml/parser/expressions: Start creating expressions parserZyX2017-10-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently supported nodes: - Register as it is one of the simplest value nodes (even numbers are not that simple with that dot handling). - Plus, both unary and binary. - Parenthesis, both nesting and calling. Note regarding unit tests: it stores data for AST in highlighting in strings in place of tables because luassert fails to do a good job at representing big tables. Squashing a bunch of data into a single string simply yields more readable result.
| * | | | | | | | | | | | | viml/parser: Add helper functions for highlightingZyX2017-10-08
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | viml/parser: Handle encoding conversionsZyX2017-10-08
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | viml/expressions: Add lexer with some basic testsZyX2017-10-08
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | kvec: Add kv_Z which is like kv_A, but zero is the last valueZyX2017-10-08
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | kvec: Add kv_drop() which is to be used like `(void)kv_pop(kvec)`ZyX2017-09-29
| | | | | | | | | | | | | |
* | | | | | | | | | | | | | Merge #7676 from florolf/atomic-unibiliumJustin M. Keyes2017-12-06
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | closes #7381
| * | | | | | | | | | | | | | tui: always hide cursor when flushingFlorian Larysch2017-12-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous commit ensures that we can never flush the buffer in a state where toggling cursor visibility can corrupt other escape codes. Thus, we can remove the workaround added as part of e838452, simplyfing the code and hiding the cursor on more occasions.
| * | | | | | | | | | | | | | tui: never flush buffers in midst of unibilium outputFlorian Larysch2017-12-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e83845285 fixed an issue where long (true color) escape sequences got interrupted by the cursor visibility toggling caused by buffer flushes. cdfaecb25 introduces a new issue which causes similar problems: While the old buffer flushing code appended the cursor visibility escapes to the buffer before/after flushing, the new code effectively prepends the sequences. Assume the following sequence of events occurs: - A long escape code is issued using unibi_out when the buffer is almost full - out() gets called for a prefix of that escape code, causing the buffer to fill up - flush_buf(ui, false) is called and (correctly) does not insert any cursor toggling escapes - The rest of the escape code is written into the now empty buffer - At some later point, some other part of nvim calls flush_buf(ui, true), which then toggles the cursor, corrupting the escape code This could possibly also be fixed by tracking the state of the buffer (i.e. does it contain a partially output escape code?), but this seems fragile in the same way e83845285 turned out to be. The root cause for all these problems is the mismatch between nvim's (implicit) assumption that the buffer is flushable at any point in time and the non-atomicity of unibilium's character based callback interface. The proper fix (without modifying unibilium) is to ensure nvim's assumption about the buffer state holds at all times. To that end, add a "cork" flag which ensures one unibi_out-call never splits its output across a buffer flush; if an escape code does not fit into the current buffer, flush it without any part of the escape code in it and insert the whole escape code in the emptied buffer. This is a little more complex because it modifies the buffer in place rather than printing into another buffer, checking the remaining space in the terminal buffer and then memcpy'ing it.
* | | | | | | | | | | | | | | Merge pull request #7692 from bfredl/wildcmdBjörn Linse2017-12-06
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ui: fix glitch with both ext_cmdline and cmd_wildmenu
| * | | | | | | | | | | | | | | ui: fix glitch with both ext_cmdline and cmd_wildmenuBjörn Linse2017-12-06
| | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | tui: ignore st terminfo cursor shape (Se, Ss) entriesJustin M. Keyes2017-12-06
|/ / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | closes #7641
* | | | | | | | | | | | | | | Merge #7477 from FlorianGit/empty-lists-dicts-stringsJustin M. Keyes2017-12-05
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | Viml: Make filter and map handle null list correctFlorianGit2017-12-03
| | |_|_|_|_|_|_|_|/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | filter('v:_null_list, 'v:val') should return v:_null_list and a similar statement should hold for map. Changes after review * Test inserted in legacy test suite has been removed by reverting the commit adding it. * Change the fix to tv_copy the argument before returning. * Readd the two tests on crashes, and modified their expected return value. * Move the test from 'incorrect behaviour' section to 'correct behaviour section' * Add analogous tests for v:_null_dict Always copy list or dictionary to return variable If the type of input is correct (i.e. either a list or a dictionary), this should also be returned.