aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* msgpack: NULL terminate incoming stringsNicolas Hillegeer2014-06-08
| | | | | | | It's a 1-byte loss of memory but it allows us to skip copying and NULL-terminating strings when interacting with vim functions that accept C strings. This lowers the pressure on the allocator and saves lines of code (no more dup/free pairs).
* text: remove useless arg from mb_string2cellsNicolas Hillegeer2014-06-08
| | | | | | | | | | | | | | | | | | mb_string2cells was always called like mb_string2cells(..., -1) so that was the only codepath that was tested. @tarruda was the first to try to input an actual length, after which valgrind detected that funny business was going on. It's not even possible to do the right thing with the current text codec infrastructure: they all assume to be working with C strings. Meaning that if there is no NUL-terminator, they will happily keep on reading past the end of Pascal strings. Ergo, passing the length parameter is moot. The condition in the for-loop was wrong as well (but that's no longer relevant). Also change the return value to size_t, by analogy with strlen. ref: https://github.com/neovim/neovim/commit/677d30d7966dd2766bbf20665791c568dacc427a
* text/encoding: constify argumentsNicolas Hillegeer2014-06-07
| | | | | | Most of these functions don't modify their strings, let's make the contract a bit clearer. In some cases I've tried to get rid of C89-style variable declarations at the start of functions, now that I was there.
* vim-patch:7.4.290 #753oni-link2014-06-06
| | | | | | | | | Problem: A non-greedy match followed by a branch is too greedy. (Ingo Karkat) Solution: Add NFA_MATCH when it is already in the state list if the position differs. https://code.google.com/p/vim/source/detail?r=b871734bf54ea185dbd2cc759d86dbfbe21cde26
* vim-patch:7.4.292 #754oni-link2014-06-06
| | | | | | | | | | Problem: Searching for "a" does not match accented "a" with new regexp engine, does match with old engine. (David Bürgin) "ca" does not match "ca" with accented "a" with either engine. Solution: Change the old engine, check for following composing character also for single-byte patterns. https://code.google.com/p/vim/source/detail?r=60cdaa05a6ad31cef55eb6b3dc1f57ecac6fcf79
* Remove USE_CR and tag_fgets. #808Justin M. Keyes2014-06-06
| | | | These features are only used by legacy Mac OS.
* Add more commented patch numbers to version.c (2) #763oni-link2014-06-05
| | | | This should help reduce conflicts when merging patches from upstream.
* vim-patch:7.4.289 #752oni-link2014-06-05
| | | | | | | | | Problem: Pattern with repeated backreference does not match with new regexp engine. (Urtica Dioica) Solution: Also check the end of a submatch when deciding to put a state in the state list. https://code.google.com/p/vim/source/detail?r=99374096a76b96d1128f5e6aa1fa92b4ba70fee9
* vim-patch:7.4.288 #751oni-link2014-06-05
| | | | | | | Problem: When 'spellfile' is set the screen is not redrawn. Solution: Redraw when updating the spelling info. (Christian Brabandt) https://code.google.com/p/vim/source/detail?r=7965cb6a435ae1ea331c7c2f8740d3d4c3625f3b
* vim-patch:7.4.286 #750oni-link2014-06-05
| | | | | | | Problem: Error messages are inconsistant. (ZyX) Solution: Change "Lists" to "list". https://code.google.com/p/vim/source/detail?r=be19015ef43cc17825929206790696c2e716035d
* vim-patch:7.4.284 #748oni-link2014-06-05
| | | | | | | | Problem: Setting 'langmap' in the modeline can cause trouble. E.g. mapping ":" breaks many commands. (Jens-Wolfhard Schicke-Uffmann) Solution: Disallow setting 'langmap' from the modeline. https://code.google.com/p/vim/source/detail?r=3c35ca9666e88a8024af6dab585b8e79ab295f83
* vim-patch:7.4.282 #747oni-link2014-06-05
| | | | | | | Problem: Test 97 fails on Mac. Solution: Do not ignore case in file names. (Jun Takimoto) https://code.google.com/p/vim/source/detail?r=6d0a1132dd71c7f55f7ed53fe99e97c79bfd05a4
* vim-patch:7.4.281 #746oni-link2014-06-05
| | | | | | | | Problem: When a session file has more than one tabpage and 'showtabline' is one the positions may be slightly off. Solution: Set 'showtabline' to two while positioning windows. https://code.google.com/p/vim/source/detail?r=24c90f1fec859b54cf2b854b98c4c9e614c46061
* vim-patch:7.4.280 #745oni-link2014-06-05
| | | | | | | | Problem: When using a session file the relative position of the cursor is not restored if there is another tab. (Nobuhiro Takasaki) Solution: Update w_wrow before calculating the fraction. https://code.google.com/p/vim/source/detail?r=daf7e98675cf395e1ef96f8040567affb2782a11
* vim-patch:7.4.275Douglas Schneider2014-06-04
| | | | | | | | | | Problem: When changing the type of a sign that hasn't been placed ther is no error message. Solution: Add an error message. (Christian Brabandt) Author: Bram Moolenaar https://code.google.com/p/vim/source/detail?r=8a3117a4887c1e12a1165c9719491f96753
* vim-patch:7.4.277oni-link2014-06-04
| | | | | | | | Problem: Using ":sign unplace *" may leave the cursor in the wrong position (Christian Brabandt) Solution: Update the cursor position when removing all signs. https://code.google.com/p/vim/source/detail?r=373204662d82e894b27ee76bc3319bc62c91f6ae
* Fix diagrams in ex_cmds.c #798Justin M. Keyes2014-06-02
|
* Use generated static declarations in cursor.cZyX2014-06-02
|
* Use generated headers in os.hZyX2014-06-02
|
* Add REAL_FATTR_ macros to func_attr.h, use them in lib/k*ZyX2014-06-02
| | | | Otherwise FUNC_ATTR_* macros may appear empty
* Move memory.h include above func_attr.h includeZyX2014-06-02
|
* Remove unneeded klist include in channel.cZyX2014-06-02
|
* Remove a number of unneeded func_attr includesZyX2014-06-02
|
* Add missing include to mbyte.cZyX2014-06-02
|
* Fix some stylesZyX2014-06-02
|
* Add include guard to ex_cmds_defsZyX2014-06-02
|
* Make nvim/lib/k*.h headers be the last one in the listZyX2014-06-02
| | | | So that they do the last nvim/func_attr.h include
* Surround nvim/func_attr.h includes with define/undef DEFINE_FUNC_ATTRIBUTESZyX2014-06-02
| | | | Required for FUNC_ATTR_UNUSED to work in lib/k*
* Remove remaining declarations with new script: finddeclarations.plZyX2014-06-02
|
* Add automatic generation of headersZyX2014-06-02
| | | | | | | | | | | | | | | | | - The 'stripdecls.py' script replaces declarations in all headers by includes to generated headers. `ag '#\s*if(?!ndef NEOVIM_).*((?!#\s*endif).*\n)*#ifdef INCLUDE_GENERATED'` was used for this. - Add and integrate gendeclarations.lua into the build system to generate the required includes. - Add -Wno-unused-function - Made a bunch of old-style definitions ANSI This adds a requirement: all type and structure definitions must be present before INCLUDE_GENERATED_DECLARATIONS-protected include. Warning: mch_expandpath (path.h.generated.h) was moved manually. So far it is the only exception.
* Move documentation from function declarations to definitionsZyX2014-06-02
| | | | Uses a perl script to move it (scripts/movedocs.pl)
* Rename --api-metadata to --api-msgpack-metadataRui Abreu Ferreira2014-06-02
|
* Add --api-metadata command line optionRui Abreu Ferreira2014-06-02
| | | | | - New command line option prints the binary API metadata object and exits
* Fix unused variable when NDEBUG is defined.Justin M. Keyes2014-05-31
| | | | | | Occurs when compiling with: rm -rf build/ && make clean && make cmake CFLAGS='-DNDEBUG' && make ^--important
* Initialize Object, PositionJustin M. Keyes2014-05-31
| | | | | fix #778 thanks @genisaguilar
* Refactor: Redefine `Map(T)` as a more generic `Map(T, U)` macroThiago de Arruda2014-05-30
| | | | | To replace `Map(T)`, a new macro `PMap(T)` was defined as `Map(T, ptr_t)` for writing maps that store pointers with less boilerplate
* Add a few more sources to CONV_SRCS.John Szakmeister2014-05-29
|
* Remove unused FEAT_*Pavel Platto2014-05-28
|
* Remove FEAT_TITLEHinidu2014-05-28
| | | | 'title' and 'icon' options
* Remove FEAT_GETTEXTHinidu2014-05-28
| | | | Support for message translations using gettext()
* Remove FEAT_POSTSCRIPTHinidu2014-05-28
| | | | Printing using PostScript file output
* Remove FEAT_FLOATHinidu2014-05-28
| | | | Support for floating point variables
* Remove FEAT_STL_OPTHinidu2014-05-28
| | | | | 'statusline', 'rulerformat' and special format of 'titlestring' and 'iconstring' options
* Remove FEAT_SESSIONHinidu2014-05-28
| | | | Support for :mksession command
* Remove FEAT_SEARCHPATHHinidu2014-05-28
| | | | | Support for gf(edit the file whose name is under or after the cursor) and <cfile>(is replaced with the path name under the cursor).
* Remove FEAT_MENUHinidu2014-05-28
| | | | Support for :menu command. It can be used in terminal Vim too.
* Remove FEAT_LISTCMDSHinidu2014-05-28
| | | | | Vim commands for the buffer list and the argument list: ":buffer", ":bnext", ":bdel", ":argdelete", etc.
* Remove FEAT_EX_EXTRAHinidu2014-05-28
| | | | Vim's extra Ex commands: :center, :left, :normal, :retab and :right
* Remove FEAT_EVALHinidu2014-05-28
| | | | Support for VimScript, :let, :if, etc.
* Remove FEAT_CURSORBINDHinidu2014-05-28
| | | | Synchronization of cursor in split windows for diff mode