aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* api/msgpack-rpc: Expose channel_from_job to vimscript as api_spawnThiago de Arruda2014-09-12
|
* main: Rename --embedded-mode and --api-msgpack-metadata optionsThiago de Arruda2014-09-12
| | | | | --embedded-mode -> --embed --api-msgpack-metadata -> --api-info
* api/msgpack-rpc: Refactor msgpack_rpc_helpers.{c,h}Thiago de Arruda2014-09-12
| | | | | | - Move helpers that are specific to API types to api/private/helpers.{c,h} - Include headers with generated declarations - Delete unused macros
* api/msgpack-rpc: Remove Position type, using arrays instead.Thiago de Arruda2014-09-12
|
* api/msgpack-rpc: Use EXT type to serialize Buffer/Window/TabpageThiago de Arruda2014-09-12
|
* api/msgpack-rpc: Parse type information from api/private/defs.hThiago de Arruda2014-09-12
| | | | | | | Enhance msgpack-gen.lua to extract custom api type codes from the ObjectType enum in api/private/defs.h. The type information is made available from the api metadata and clients can use to correctly serialize/deserialize these types using msgpack EXT type.
* api/msgpack-rpc: Remove specialized array typesThiago de Arruda2014-09-12
| | | | | | | | | | | | | | | | | Specialized array types(BufferArray, WindowArray, etc) were added to the API for two main reasons: - msgpack used to lack a way of serializing appliaction-specific types and there was no obvious way of making an API function accept/return arrays of custom objects such as buffers(which are represented as integers, so clients didn't have a way to distinguish from normal numbers) - Let clients in statically-typed languages that support generics have a better typed API With msgpack 2.0 EXT type the first item is no longer a factor and this commit starts by removing the specialized array types. The second item will be addressed in the future by making the API metadata return extra useful information for statically-typed languages.
* msgpack-rpc: Remove the `msgpack_rpc_unpack` functionThiago de Arruda2014-09-12
| | | | | | | The `msgpack_rpc_unpack` function was created to work around a deficiency in the msgpack unpack API, which did not let the caller know if parsing failed due to needing more data or to invalid input. The deficiency does not exist in the latest version of `msgpack_unpacker_next`, so it can safely be removed.
* memory: Use i18n messages for memory-related errorsThiago de Arruda2014-09-12
|
* msgpack-rpc: Remove support for integer ids in methodsThiago de Arruda2014-09-12
| | | | | There's no need to have integer and string ids, and since we now fully support msgpack-RPC, support for integer ids was removed.
* msgpack-rpc: Refactor API metadata discovery methodThiago de Arruda2014-09-12
| | | | | | | | | | A new method is now exposed via msgpack-rpc: "get_api_metadata". This method has the same job as the old method '0', it returns an object with API metadata for use by generators. There's one difference in the return value though: instead of returning a string containing another serialized msgpack document, the metadata object is returned directly(a separate deserialization step by clients is not required).
* msgpack-rpc: Move handle_missing_method to msgpack_rpc.cThiago de Arruda2014-09-12
| | | | | Since that function is not automatically generated, it's best to place it in a normal C module
* msgpack-rpc: Refactor initializer and dispatcherThiago de Arruda2014-09-12
| | | | | | | | Use Map(String, rpc_method_handler_fn) for storing/retrieving rpc method handlers in msgpack_rpc_init and msgpack_rpc_dispatch. Also refactor serialization/validation functions in the msgpack_rpc.c/msgpack_rpc_helpers.c modules to accept the new STR and BIN types.
* map/msgpack-rpc: Declare/define maps rpc method handlersThiago de Arruda2014-09-12
| | | | | The new map type uses `String` instances as keys to avoid unnecessary copying to zero-terminated buffers.
* deps: Update to the experimental msgpack v5 branchThiago de Arruda2014-09-12
| | | | | | | | Using msgpack v5 will let nvim be more compatible with msgpack libraries for other platforms. This also replaces "raw" references by "bin" which is the new name for msgpack binary data type
* vim-patch:7.4.349André Twupack2014-09-11
| | | | | | | | | Problem: When there are matches to highlight the whole window is redrawn, which is slow. Solution: Only redraw everything when lines were inserted or deleted. Reset b_mod_xlines when needed. (Alexey Radkov) https://code.google.com/p/vim/source/detail?r=v7-4-349
* vim-patch:7.4.348André Twupack2014-09-11
| | | | | | | Problem: When using "J1" in 'cinoptions' a line below a continuation line gets too much indent. Solution: Fix parenthesis in condition. https://code.google.com/p/vim/source/detail?r=v7-4-348
* Merge pull request #1159 from atwupack/vp-7.4.345Justin M. Keyes2014-09-10
|\ | | | | vim-patch:7.4.345
| * vim-patch:7.4.345André Twupack2014-09-10
| | | | | | | | | | | | | | Problem: Indent is not updated when deleting indent. Solution: Remember changedtick. https://code.google.com/p/vim/source/detail?r=v7-4-345
* | vim-patch:7.4.337André Twupack2014-09-10
|/ | | | | | | | Problem: When there is an error preparing to edit the command line, the command won't be executed. (Hirohito Higashi) Solution: Reset did_emsg before editing. https://code.google.com/p/vim/source/detail?r=v7-4-337
* Merge pull request #1154 from Shougo/fix-NAsJustin M. Keyes2014-09-09
|\ | | | | Fix #1147 version numbers
| * Fix version numbersShougo Matsushita2014-09-10
| |
* | Merge pull request #1149 from splinterofchaos/vim-patch-7.4.278Justin M. Keyes2014-09-09
|\ \ | |/ |/| vim-patch:7.4.278
| * vim-patch:7.4.278Scott Prager2014-09-09
| | | | | | | | | | | | | | Problem: list_remove() conflicts with function defined in Sun header file. Solution: Rename the function. (Richard Palo) https://code.google.com/p/vim/source/detail?r=v7-4-278
* | Additional FOR_ALL_WINDOWS usageWayne Rowcliffe2014-09-08
| |
* | Convert FOR_ALL_WINDOWS to use a locally declared pointerWayne Rowcliffe2014-09-08
|/
* Merge pull request #1107 from fmoralesc/matchaddposJustin M. Keyes2014-09-05
|\ | | | | Add matchaddpos()-related vim patches. [vim-patch: 7.4.330, 7.4.334, 7.4.343, 7.4.344, 7.4.362]
| * vim-patch: 7.4.344Felipe Morales2014-09-04
| | | | | | | | | | | | | | | | Problem: Unnecessary initializations and other things related to matchaddpos(). Solution: Code cleanup. (Alexey Radkov) https://code.google.com/p/vim/source/detail?r=ce284c205558d103326a4c3f22f181774690b3eb
| * vim-patch: 7.4.343Felipe Morales2014-09-04
| | | | | | | | | | | | | | Problem: matchdelete() does not always update the right lines. Solution: Fix off-by-one error. (Ozaki Kiichi) https://code.google.com/p/vim/source/detail?r=539ce56d8f35fe2deb5c4f57335e1adf97ae4e74
| * vim-patch: 7.4.362Felipe Morales2014-09-04
| | | | | | | | | | | | | | | | | | Problem: When matchaddpos() uses a length smaller than the number of bytes in the (last) character the highlight continues until the end of the line. Solution: Change condition from equal to larger-or-equal. https://code.google.com/p/vim/source/detail?r=7fa2bed947fde3514a700c96861a537d816d6fd4
| * vim-patch: 7.4.334Felipe Morales2014-09-04
| | | | | | | | | | | | | | Problem: Unitialized variables, causing some problems. Solution: Initialize the variables. (Dominique Pelle) https://code.google.com/p/vim/source/detail?r=03d260a8ea0c0c67f424c387dbe2af5754e5e589
| * vim-patch: 7.4.330Felipe Morales2014-09-04
| | | | | | | | | | | | | | | | | | | | Problem: Using a regexp pattern to highlight a specific position can be slow. Solution: Add matchaddpos() to highlight specific positions efficiently. (Alexey Radkov.) https://code.google.com/p/vim/source/detail?r=f9fa2e506b9f07549cd91074835c5c553db7b3a7
* | fileinfo: change returntype of os_fileinfo_sizeStefan Hoffmann2014-08-31
| | | | | | | | off_t -> uint64_t
* | fileid: rename os_file_id_equal_file_infoStefan Hoffmann2014-08-31
| |
* | fileid: rename os_file_id_equalStefan Hoffmann2014-08-31
| |
* | fileid: rename os_get_file_idStefan Hoffmann2014-08-31
| |
* | fileinfo: rename os_file_info_get_inodeStefan Hoffmann2014-08-31
| |
* | fileinfo: rename os_file_info_get_idStefan Hoffmann2014-08-31
| |
* | fileinfo: rename os_file_info_id_equalStefan Hoffmann2014-08-31
| |
* | fileinfo: rename os_get_file_info{,_link,_fd}Stefan Hoffmann2014-08-31
| |
* | fileinfo: implement os_fileinfo_blocksizeStefan Hoffmann2014-08-31
| |
* | fileinfo: implement os_fileinfo_hardlinksStefan Hoffmann2014-08-31
| |
* | fileinfo: implement os_fileinfo_sizeStefan Hoffmann2014-08-31
| | | | | | | | this replaces os_get_file_size and file_info.stat.st_size
* | channel: Remove code for automatically closing in channel_send_callThiago de Arruda2014-08-31
| | | | | | | | | | | | This was causing a segfault(reported in #1125) because channels are already closed by `parse_msgpack` when the connection ends. Also fix the RPC stack overflow error message
* | msgpack-rpc: Always use arrays when sending events or callsThiago de Arruda2014-08-29
| | | | | | | | | | | | This is required by the msgpack-RPC specification. Also, the send_call/send_event functions were refactored to accept a variable number of arguments
* | msgpack-rpc: Accept method names in requestsThiago de Arruda2014-08-29
| |
* | clang: Null pointer passed as an argument to a 'nonnull' parameter #1090Justin M. Keyes2014-08-28
| |
* | api: Implement '--embedded-mode' command-line optionThiago de Arruda2014-08-28
| | | | | | | | | | This option makes nvim run in "embedded mode", which creates an API channel via stdin/stdout and disables all terminal-related code
* | channel: Implement channel_from_stdio functionThiago de Arruda2014-08-28
| | | | | | | | | | This function can be used to create an API channel that reads/writes from/to stdin/stdout
* | channel: fix channel buffer sizeThiago de Arruda2014-08-28
| |