Commit Graph

1211 Commits

Author SHA1 Message Date
Klemen Košir
a568e8b644 Replaced most TRUE/FALSE macros in arabic, mbyte and spell. #645 2014-07-08 17:34:08 +00:00
Klemen Košir
ef34a0ab13 Replace int with bool in some files. #654 2014-07-08 17:25:48 +00:00
Nicolas Hillegeer
3cf435af36 Merge pull request #922 'Improve neovim.rb' 2014-07-08 15:44:50 +02:00
Xu Cheng
ccd3f9ce67 neovim.rb: improve dependency
1. remove unnecessary deps `md5sha1sum`
2. add `=> :build`
3. add missing deps `autoconf`
2014-07-08 15:43:04 +02:00
Xu Cheng
8046e59f05 neovim.rb: modernize the style
https://github.com/styleguide/ruby
2014-07-08 15:43:04 +02:00
John Szakmeister
447f1c7b54 Merge #910 'Remove unnecessary PATHS from cmake modules' 2014-07-08 05:06:49 -04:00
Rui Abreu Ferreira
e06595fffb Removed unnecessary PATHS from cmake modules
- DEPS_INSTALL_DIR is already set into CMAKE_PREFIX_PATH in
  the main CMakeLists.txt
2014-07-08 05:06:09 -04:00
Thiago de Arruda
bced7a871b Merge pull request #916 'Add feedkeys API function' 2014-07-07 12:18:46 -03:00
Thiago de Arruda
745928ef6b dispatch function generator: Fix bug in validation/initialization
- Initialize variables before validating argument count to remove possibility of
  freeing uninitialized pointers
- Set the error when the argument count validation fails
2014-07-07 12:18:39 -03:00
Rui Abreu Ferreira
67c5684e23 Add vim_feedkeys API function
- New API function to push data to the typeahead buffer - this should
  equivalent to the vimscript feedkeys() function
- In Vim there was a --remote-send command to insert input into a
  Vim server instance. Besides accepting key sequences it also
  translated special keys such as <CR> or <Leader>, backslash notation
  is ignored. This commit backports the original Vim handler for
  --remote-send as a bool option for vim_feedkeys()
- vim-patch:0
2014-07-07 12:18:36 -03:00
Nicolas Hillegeer
aad2a69c96 cmake: upgrade libuv 0.11.23 -> 0.11.26 #911
Fixes some bugs and increase the performance of uv_hrtime() on OSX, which
reduces its prominence in performance traces. This allows us to better see
what's really causing slowness.

ref:
- https://github.com/neovim/neovim/issues/868
- https://github.com/joyent/libuv/pull/1325
- https://github.com/joyent/libuv/releases
2014-07-06 23:55:12 +02:00
Felipe Oliveira Carvalho
9a2b2d4a64 MsgPack-RPC dispatch based on function array lookup #864
This simplifies the generated msgpack_rpc_dispatch() function, separates the
code for each RPC method more clearly and allows easy implementation of
alternative dispatching methods (e.g. string method id dispatch).
2014-07-04 17:05:24 +00:00
Rui Abreu Ferreira
11653ce2d7 Remove include for sys/select.h in vim.h #890
- There is no need to include sys/select.h anymore
- Removed HAVE_SYS_SELECT_H from config.h.in
2014-07-01 18:21:02 -04:00
Justin M. Keyes
7d3666a123 Merge #780 'Update German translation' 2014-07-01 17:26:03 -04:00
Florian Walch
c175319266 Update German translation: Improve translations.
* Translate missing and fuzzy strings.
* Fix grammatical errors.
* Rewordings for consistency.
2014-07-01 17:25:58 -04:00
Florian Walch
1bbf8c4ed2 Update German translation: Sync to 9f1b9726fb. 2014-07-01 17:25:58 -04:00
Justin M. Keyes
fc8aba6077 Merge #892 'Update pt_BR translation' 2014-07-01 14:52:33 -04:00
Eduardo Elias Ferreira
e5c4b520a2 Update pt_BR translation: Improve translations.
[ci skip]
2014-07-01 14:51:14 -04:00
Eduardo Elias Ferreira
8536d743ff Update pt_BR translation: Sync to a321480342 2014-07-01 14:51:14 -04:00
Justin M. Keyes
9d8733c579 LICENSE: add LuaJIT notice. #899 2014-06-30 13:59:56 -04:00
Justin M. Keyes
044d8acae3 README: Add Bountysource badge. #854 2014-06-30 13:45:48 -04:00
Rui Abreu Ferreira
40bc328813 Remove pthread fatal check from CMakeLists.txt #891 2014-06-30 13:37:38 -04:00
Justin M. Keyes
370879a7fc README: fix links 2014-06-30 04:37:41 -04:00
Justin M. Keyes
96ce391db9 clarify LICENSE and README #899 2014-06-30 04:31:58 -04:00
Justin M. Keyes
e4abb9e09a Merge #830 'GA_APPEND() and GA_APPEND_VIA_PTR()' 2014-06-30 03:57:59 -04:00
Felipe Oliveira Carvalho
5ed74cfb7c Introduce ga_append_via_ptr() and GA_APPEND_VIA_PTR()
Similar to GA_APPEND(). Replaces this pattern:

    ga_grow(&ga, 1);
    item_type *p = ((item_type *)ga.ga_data) + ga.ga_len;
    p->field1 = v1;
    p->field2 = v2;
    ga.ga_len++;
2014-06-30 03:57:50 -04:00
Felipe Oliveira Carvalho
45e7814e6a Introduce GA_APPEND()
This macro is used to append an element to a growable array. It replaces this
common idiom:

   ga_grow(&ga, 1);
   ((item_type *)ga.ga_data)[ga.ga_len] = item;
   ++ga.ga_len;
2014-06-30 03:57:50 -04:00
Felipe Oliveira Carvalho
be3a4b6ca8 ga_growsize should be >= 1
I know it could be 0 sometimes. Running the tests with
`assert(gap->ga_growsize > 0)` in ga_grow() crashes nvim while running the
tests.

 - Add a setter for ga_growsize that checks whether the value passed is >=1 (log
	 in case it's not)
 - log when ga_grow() tries to use a ga_growsize that's not >=1
 - use GA_EMPTY_INIT_VALUE is many places
2014-06-30 03:57:50 -04:00
Justin M. Keyes
d723e7fd61 keep statusline within window width. @oni-link fix #858
PR #866
ref #858
2014-06-29 15:25:06 -04:00
Justin M. Keyes
2ddeb74202 Merge #802 'implement VimL libcall with os_libcall' 2014-06-28 14:44:34 -04:00
Nicolas Hillegeer
8c51804d52 libcall: remove libcall ifdefs
Remove all the legacy code that related to mch_libcall in some way.
os_libcall is implemented on top of libuv now.
2014-06-28 14:44:17 -04:00
Nicolas Hillegeer
bbb649ac69 os: remove legacy mch_libcall
Remove as much leftover cruft as possible. Tried to see which globals are
now not used anymore.
2014-06-28 14:44:16 -04:00
Nicolas Hillegeer
99163c9f13 os: implement VimL libcall with {mch,os}_libcall
The old mch_libcall was removed from neovim. This is a partial
reimplementation on top of libuv. It doesn't catch exceptions (windows) nor
signals (unix) though, so it's quite a bit more prone to crashing if the
loadable library throws an exception or crashes. Still, it should be fine
for well-behaved libraries. Requested by @Shougo.
2014-06-28 14:42:59 -04:00
Justin M. Keyes
2fcc07892f Merge #775 'Implement FileID struct' 2014-06-28 03:24:35 -04:00
Stefan Hoffmann
147ab48d1c FileID: remove CHECK_INODE macro 2014-06-27 13:59:29 +02:00
Stefan Hoffmann
cc02c3537d FileID: remove last use of st_ino in memline.c
* FileID can’t be used in memline.c, because the block0 is defined to
use only a 32bit ino.
* implemented `os_file_info_get_inode`
* deprecated `os_file_info_get_inode
2014-06-27 13:59:29 +02:00
Stefan Hoffmann
a0394f5e77 FileID: make os_stat() static 2014-06-27 13:59:29 +02:00
Stefan Hoffmann
de35948960 FileID: refactor os_unix.c to use FileID 2014-06-27 13:59:29 +02:00
Stefan Hoffmann
21af178b14 FileID: refactor path.c to use FileID 2014-06-27 13:59:29 +02:00
Stefan Hoffmann
7340f619d7 FileID: refactor if_cscope.c to use FileID 2014-06-27 13:59:29 +02:00
Stefan Hoffmann
d3257c4ddf FileID: refactor file_search.c to use FileID 2014-06-27 13:59:29 +02:00
Stefan Hoffmann
fc2a668c7c FileID: refactor ex_cmds2.c to use FileID 2014-06-27 13:59:28 +02:00
Stefan Hoffmann
a294a0e1c5 FileID: refactor buffer.c to use FileID 2014-06-27 13:59:28 +02:00
Stefan Hoffmann
d8ec5ef88d FileID: remove INVALID_DEVICE_ID macro 2014-06-27 13:59:28 +02:00
Stefan Hoffmann
4a22fb06b9 FileID: implement FileID struct
`FileID` should encapsulate `st_dev` and `st_ino`. It is a new abstraction
used to check if two files are the same. `FileID`s will be embeded inside
other struts like `buf_t` or `ff_visited_T`, where a full `FileInfo` would be
to big.
2014-06-27 13:59:28 +02:00
John Szakmeister
8a85b37253 Merge #887 'Fix #867: cmake doesn't issue -isystem for versioned gcc' 2014-06-27 06:58:46 -04:00
John Szakmeister
3b3811b165 Fix #867: cmake doesn't issue -isystem for versioned gcc
CMake purposefully disables the use of the `-isystem` flag on Apple
platforms, but it's overly blunt with the detection.  Apple's compilers
have supported the flag since at least 10.4.  Let's force the switch to
be on when gcc/g++ is detected on an Apple platform to reduce the
warnings out of the msgpack-related bits.
2014-06-27 06:58:46 -04:00
John Szakmeister
b083c03462 Merge pull request #844:
'Fix #838: build with "USE_BUNDLED=OFF" fails to find dependencies'
2014-06-27 06:53:29 -04:00
John Szakmeister
b235793dac Fix #838: build with "USE_BUNDLED=OFF" fails to find dependencies
Stop forcing some platform setting that are really intended to be used
for Travis CI.  Under other systems, like Arch Linux, it prevents
dependencies from being correctly located.
2014-06-27 06:52:59 -04:00
Justin M. Keyes
b17d9691a2 Add LICENSE. fix #878. PR #883
- change to Apache 2.0
- include Vim license in LICENSE
- upate README
2014-06-26 18:54:33 -04:00