aboutsummaryrefslogtreecommitdiff
path: root/src/nvim
Commit message (Collapse)AuthorAge
...
* | | | Use GA_DEEP_CLEAR where appropriateFelipe Oliveira Carvalho2014-12-11
| | | |
* | | | GA_DEEP_FREE_PTR: deep free macro for garrays that store simple pointersFelipe Oliveira Carvalho2014-12-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | By "simple pointer" I mean a pointer that can be freed with a call to `free` without leaking any member pointer. This macro does exactly what `ga_clear_strings` does.
* | | | GA_DEEP_CLEAR macro for garray memory deallocationFelipe Oliveira Carvalho2014-12-11
|/ / / | | | | | | | | | | | | | | | | | | Used to free garrays of `salitem_T` and `fromto_T` in spell.c, and garray `wcmd_T` in ex_docmd.c. Helped-by: Jiaqi Li
* | / input: Recognize mouse events for abstract_uiThiago de Arruda2014-12-10
| |/ |/|
* | docs: Remove Photon remnantsMichael Reed2014-12-09
| | | | | | | | | | Also get rid of some platform references made irrelevant by the removal of their respective platform specific GUI code.
* | docs: Remove 'osfiletype' remnantsMichael Reed2014-12-09
| | | | | | | | | | | | | | Even when this was finally removed 6 months ago in b2b920f, it had already been disabled for a while. Due to this, just remove all remnants of the option as opposed to putting a placeholder like what was done for 'shortname'and 'cryptmethod'.
* | docs: Remove EBCDIC remnantsMichael Reed2014-12-09
| |
* | docs: Remove VAX remnantsMichael Reed2014-12-09
| |
* | docs: Remove BeOS/Haiku remnantsMichael Reed2014-12-09
| |
* | msgpack-rpc: Add remote_ui moduleThiago de Arruda2014-12-08
| | | | | | | | | | The remote_ui module is an implementation of the UI layer, and it attaches UI instances that redirect redraw notifications to connected clients.
* | syntax: Use RGB/GUI attribute information for "abstract_ui"Thiago de Arruda2014-12-08
| | | | | | | | | | | | | | | | Instead of using classic cterm color numbers and attributes, treat "abstract_ui" as a GUI: Pass rgb color numbers and gui attributes when the "highlight_set" UI method is called. The terminal UI will have to translate RGB color information to an appropriate color number, and the "term"/"cterm" :highlight keys will eventually be deprecated.
* | ui: Add abstract_ui termcap and split UI layerThiago de Arruda2014-12-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is how Nvim behaves when the "abstract_ui" termcap is activated: - No data is written/read to stdout/stdin by default. - Instead of sending data to stdout, ui_write will parse the termcap codes and invoke dispatch functions in the ui.c module. - The dispatch functions will forward the calls to all attached UI instances(each UI instance is an implementation of the UI layer and is registered with ui_attach). - Like with the "builtin_gui" termcap, "abstract_ui" does not contain any key sequences. Instead, vim key strings(<cr>, <esc>, etc) are parsed directly by input_enqueue and the translated strings are pushed to the input buffer. With this new input model, its not possible to send mouse events yet. Thats because mouse sequence parsing happens in term.c/check_termcodes which must return early when "abstract_ui" is activated.
* | msgpack-rpc: Allow registration of handlers by other modulesThiago de Arruda2014-12-08
| |
* | eval_has_provider: search autoload scripts same order as call_funcBjörn Linse2014-12-08
| |
* | clipboard: fix `let @+ = ...` and add testBjörn Linse2014-12-08
| |
* | clipboard: better error messages when provider not availableBjörn Linse2014-12-08
| |
* | options: change "unnamedclip" back to "clipboard=unnamed/unnamedplus"Björn Linse2014-12-08
| | | | | | | | | | This allows to configure which of '*' and '+' should be used for the unnamed clipboard, and is consistent with vim.
* | clipboard: clean up unnamedclip logicBjörn Linse2014-12-08
| |
* | clipboard: handle linewise/charwise selections correctlyBjörn Linse2014-12-08
| |
* | clipboard: support separate '+' and '*' clipboardsBjörn Linse2014-12-08
| |
* | Merge pull request #1589 from splinterofchaos/fix-const-atterJustin M. Keyes2014-12-06
|\ \ | | | | | | strings: Remove NONNUL_ALL from NULL-taking functions.
| * | strings: Remove NONNUL_ALL from NULL-taking functions.Scott Prager2014-12-06
| | | | | | | | | | | | | | | vim_strup() is only used in a couple places, with no NULLs possible, so keep the attribute and remove the NULL check.
* | | Merge pull request #1341 from splinterofchaos/api-nulJustin M. Keyes2014-12-06
|\ \ \ | | | | | | | | Api: Improve Nul handling
| * | | api: Handle NULs and newlines in buffer_*_line.Scott Prager2014-12-06
| |/ /
* | | Merge pull request #1618 from elmart/clang-analysis-fixes-5Justin M. Keyes2014-12-06
|\ \ \ | | | | | | | | Fix clang analysis warnings. (5)
| * | | Fix warnings: message.c: msg_attr_keep(): Np dereference: FP.Eliseo Martínez2014-12-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem : Dereference of null pointer @ 179. Diagnostic : False positive. Rationale : Error occurs if `s` paramater is null, which should not happen. Resolution : Declare parameter as non null.
| * | | Fix warnings: edit.c: ins_compl_next_buf(): Np dereference: MI.Eliseo Martínez2014-12-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem : Dereference of null pointer @ 3247. Diagnostic : Multithreading issue. Rationale : Problem only occurs if global `ctrl_x_mode` is modified while calling function is executing. Solution : Use local copy instead of global.
* | | | Allow the rest of the old tests to pass with nocp.Julian Mehne2014-12-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test40.in, test60.in, test_breakindent.in, test_listlbr.in, test_listlbr_utf8.in: To avoid <tab> triggering wildmode, set wildchar to 'cp' default. test_breakindent.ok: Modify expectations to avoid cpoptions+=n
* | | | Allow most old tests to pass with nocp.Joel Teichroeb2014-12-06
|/ / / | | | | | | | | | | | | test69.in: because 'nocp' sets 'esckeys', add an extra <esc> to avoid 'tm' pause.
* | | shell: Fix shell command outputThiago de Arruda2014-12-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | Shell command output was broken in @8a5a8db, which refactored nvim to no longer switch to cooked mode(linefeeds are processed differently). Fix the problem by refactoring write_output to accept to extra arguments that control the flushing behavior and where data will be written to: buffer or directly to the screen.
* | | Remove remaining crypto referencesMichael Reed2014-12-03
| | | | | | | | | | | | | | | | | | | | | Closes https://github.com/neovim/docs/pull/26 Also added stubs for 'cryptmethod' and 'key', and placeholders for explanation regarding removal of crypto functionality.
* | | Merge pull request #1534 from oni-link/fix.leak.detected.in.1510Justin M. Keyes2014-12-03
|\ \ \ | |_|/ |/| | Fix memory leak detected in #1510.
| * | channel.c: Fix for heap-use-after-freeoni-link2014-12-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | ASAN detected this heap-use-after-free. A job started by channel_from_job() could terminate and result in a call to free_channel(), while channel_send_call() was still active/pending and accessing Channel elements. Original patch by @tarruda.
| * | Fix memory leak detected in PR 1510.oni-link2014-12-03
| | | | | | | | | | | | | | | LSAN/ASAN detected, on an error code path, that not all elements of a struct ChannelCallFrame were freed.
* | | shell: Remove kShellOptCooked from ShellOptsThiago de Arruda2014-12-03
| | |
* | | time: Inline microdelay into os_microdelayThiago de Arruda2014-12-03
|/ /
* | Revert "Merge pull request #1587 from equalsraf/tb-env-configs"John Szakmeister2014-12-03
| | | | | | | | | | This reverts commit 53bccaaf99cc9564fe5096d37e9aacfd19e3d2d4, reversing changes made to 4049002f6b1f6db33a497c1f8473ab15233395d5.
* | Merge pull request #1587 from equalsraf/tb-env-configsJohn Szakmeister2014-12-03
|\ \ | | | | | | Don't use env vars for configuration time options
| * | When SANITIZE=ON headers need -DEXITFREERui Abreu Ferreira2014-12-02
| | |
| * | Only use SANITIZE for nvim targetRui Abreu Ferreira2014-12-02
| | | | | | | | | | | | | | | - Clang's Address Sanitizer options may cause problems when running the unit tests, restrict the use of these options to the nvim target.
| * | Don't use env vars for configuration time optionsRui Abreu Ferreira2014-12-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - As a general rule of thumb one shouldn't use environment variables for setting configuration options for CMake. The reason for this is we don't know when CMake will be executed and re-evaluate that variable. - e.g. If we run cmake a first time with a var set, and then run make on a second session (with no var) and cmake is called because a dependency changed, the option would be disabled - This commit removes the use of environment vars from src/nvim/CMakeLists.txt entirely - Removed SKIP_UNITTEST since it could only be used to remove a target at configuration time (and the target was optional anyway) - Turned SANITIZE into an option, clang-asan.sh now passes cmake -DSANITIZE=ON - Removed SKIP_EXEC since it was disabling a target at configuration time (not being used)
* | | Merge pull request #877 from equalsraf/tb-gendeclarations-windowsJohn Szakmeister2014-12-03
|\ \ \ | |_|/ |/| | Refactor declaration generation error detection
| * | Refactor declaration generationRui Abreu Ferreira2014-11-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Call compiler from CMake instead of lua script to generate a preprocessor file - allows for better/early error detection if the compiler fails - Preprocessor files are saved along with the headers as .i files - Accept preprocessor lines with trailing chars after # as is the case in Clang/Windows - The fourth argument to gendeclarations.lua is now the path to the proprocessor output file
* | | Fix newline substitution: Adapt to upstream patch.Eliseo Martínez2014-12-02
| | | | | | | | | | | | | | | Fix previous changes to be compatible with agreed changes to upstream vim (https://code.google.com/p/vim/issues/detail?id=287).
* | | systemlist: add `keepempty` option to preserve final newlineBjörn Linse2014-12-02
| |/ |/|
* | mouse: Remove CHECK_DOUBLE_CLICK conditionalsThiago de Arruda2014-12-02
| | | | | | | | This is now always defined.
* | term: Move more mouse functions to mouse.cThiago de Arruda2014-12-02
| |
* | term: Remove most calls to settmodeThiago de Arruda2014-12-02
| | | | | | | | | | | | Nvim now relies much less on setting terminal mode to cooked mode, remove most calls to settmode, except for those that happen on startup or when suspending. Eventually even those will be handled by the UI layer.
* | term: Move "set_shellsize" to screen.c as "screen_resize"Thiago de Arruda2014-12-02
| |
* | Merge pull request #1582 from LBEaston/FixSegFaultJustin M. Keyes2014-12-01
|\ \ | | | | | | Fix SegFault when entering Command(q:) or Search(q/) History