James McCoy
080476882b
vim-patch:7.4.1552
...
Problem: ":colorscheme" does not use 'packpath'.
Solution: Also use in "start" and "opt" directories in 'packpath'.
7f8989dd8a
2016-07-08 01:45:15 -04:00
James McCoy
e902a172ef
vim-patch:7.4.1384
...
Problem: It is not easy to use a set of plugins and their dependencies.
Solution: Add packages, ":loadopt", 'packpath'.
f6fee0e2d4
2016-07-08 01:38:16 -04:00
Justin M. Keyes
fab62141c8
options: Default t_Co to 256.
...
This commit doesn't change any behavior, only moves the init out of main.c We
_could_ move some initialization from tui.c:terminfo_start to an earlier phase,
in order to avoid mis-reporting 't_Co' during startup. But this will be messy,
and gains very little: TERM=linux works "good enough" as long as we correct t_Co
in tui.c:terminfo_start (c5b02d5a7
).
2016-07-02 20:36:31 -04:00
ZyX
7900e38a8f
option: Make all pointers in set_string_option constant
2016-06-24 17:23:29 +03:00
ZyX
458a4d0444
*: Fix linter errors
...
Also adds one exception to linter rules:
typedef struct {
kvec_t(Object) stack;
} EncodedData;
is completely valid (from the style guide point of view) code.
2016-06-24 17:16:11 +03:00
ZyX
554005ea9a
option: Handle NULL string in set_option_value
2016-06-24 16:53:26 +03:00
TJ DeVries
aa22b5fd9a
Add new functionality to the =
marker in the STL
...
This new functionality is explained in the documentation.
Also, many tests have been added to the buffer_spec.lua file
2016-06-14 20:10:11 +02:00
Justin M. Keyes
28cc5a0646
Merge #3745 from cacplate/ops_Wconversion
...
Enable -Wconversion in ops.c
2016-06-13 04:33:30 -04:00
James McCoy
1b6681e073
vim-patch:7.4.1142
...
Problem: Cannot define keyword characters for a syntax file.
Solution: Add the ":syn iskeyword" command. (Christian Brabandt)
b8060fe862
2016-06-02 10:28:46 -04:00
Charles Joachim
c2a1821611
ops.c: enable -Wconversion warning
2016-05-30 12:05:08 -04:00
James McCoy
8a379aacd7
vim-patch:7.4.1017
...
Problem: When there is a backslash in an option ":set -=" doesn't work.
Solution: Handle a backslash better. (Jacob Niehus) Add a new test, merge
in old test.
8f79acdf7e
2016-05-20 21:43:15 -04:00
ZyX
cf4e1fb0f4
*: Fix new linter errors
...
Originally there were 128 new errors, so I thought this is a good idea to fix
all of them. Of course, this commit also fixes many suppressed errors.
2016-05-01 20:35:51 +03:00
Justin M. Keyes
81e0874a54
option.c: include header for completeopt_was_set
2016-04-28 00:09:33 -04:00
Justin M. Keyes
2d5520fb25
Merge pull request #4622 from Shougo/vim-7.4.1753
...
vim-patch:7.4.1753
2016-04-27 21:01:03 -04:00
Justin M. Keyes
ea483231c5
Merge pull request #4593 from ZyX-I/length-functions
...
Make some function accept strings with length in place of just strings
2016-04-26 23:12:42 -04:00
Justin M. Keyes
121e76db6f
Merge pull request #4273 from watiko/vim-7.4.957
...
vim-patch:7.4.{941,942,957}
2016-04-25 03:20:45 -04:00
Shougo Matsushita
e57238a644
vim-patch:7.4.1753
...
Problem: "noinsert" in 'completeopt' is sometimes ignored.
Solution: Set the variables when the 'completeopt' was set. (Ozaki Kiichi)
c020042083
2016-04-22 07:19:25 +09:00
ZyX
191fb638f4
*: Fix linter errors
2016-04-18 03:37:24 +03:00
ZyX
494b1c9bee
*: Make set_vim_var_\* functions have proper argument types
2016-04-18 02:48:20 +03:00
ZyX
c0bab19cf5
option: Allow zero-length options
...
Code that expected NUL-terminated strings allowed them and this behaviour is
actually used.
2016-04-18 02:43:43 +03:00
ZyX
9261f1597f
option: Use findoption_len in do_set
2016-04-18 02:43:43 +03:00
ZyX
1168dbe343
option: Add find_key_option_len function
2016-04-18 02:43:43 +03:00
ZyX
459900b100
option: Add findoption_len function
...
It is like findoption(), but works with non-NUL-terminated strings.
2016-04-18 02:43:43 +03:00
ZyX
ebabdff5cd
keymap: Make replace_termcodes and friends accept length and cpo_flags
...
Reasons:
- One does not have to do `s[len] = NUL` to work with these functions if they do
not need to replace the whole string: thus `s` may be const.
- One does not have to save/restore p_cpo to work with them.
2016-04-18 02:43:43 +03:00
watiko
c78aeb0d46
vim-patch:7.4.941
...
Problem: There is no way to ignore case only for tag searches.
Solution: Add the 'tagcase' option. (Gary Johnson)
0f6562e903
2016-03-06 00:32:39 +09:00
Justin M. Keyes
56bfdd7934
Merge #4265 'vim-patch:7.4.925'.
2016-03-02 01:24:38 -05:00
Forrest Fleming
7feef42e8a
coverity/71530: Prefer STRLCPY to STRCPY in option.c
...
Addresses Coverity CID 71530
Prefer sizeof(NameBuff)
Add braces for Travis lint
Break long line
Properly align parameters in multi-line function call
2016-02-23 08:27:27 -08:00
Justin M. Keyes
156df2c81b
coverity/135593: Error handling issues (CHECKED_RETURN)
...
Harmless issue (HI): retval is intentionally ignored, as is the wont of
didset_options() and friends.
2016-02-19 02:00:23 -05:00
watiko
0d6cd2b808
option_defs.h: Introduce SHM_ABBREVIATIONS
...
Helped-by: ZyX <kp-pav@yandex.ru >
2016-02-17 21:04:24 +09:00
Justin M. Keyes
e4e5815242
Merge pull request #4244 from watiko/vim-7.4.830
...
vim-patch:7.4.{830,833}
2016-02-17 04:26:29 -05:00
Justin M. Keyes
6dc39d84cf
Merge pull request #4188 from jbradaric/vim-7.4.868
...
vim-patch:7.4.868
2016-02-17 03:45:12 -05:00
watiko
6c99667b6e
vim-patch:7.4.833
...
Problem: More side effects of ":set all&" are missing. (Björn Linse)
Solution: Call didset_options() and add didset_options2() to collect more
side effects to take care of. Still not everything...
e68c25c677
2016-02-12 19:41:10 +09:00
watiko
b6fdc3eb47
vim-patch:7.4.830
...
Problem: Resetting 'encoding' when doing ":set all&" causes problems.
(Bjorn Linse) Display is not updated.
Solution: Do not reset 'encoding'. Do a full redraw.
b341dda575
---
":set all&" does not reset 'encoding' in neovim.
2016-02-12 16:09:51 +09:00
Jurica Bradaric
cdd2bdabee
Fix linter errors.
2016-02-09 22:47:25 +01:00
Jurica Bradaric
35d50ab5b9
vim-patch:7.4.868
...
Problem: 'smarttab' is also effective when 'paste' is enabled. (Alexander
Monakov)
Solution: Disable 'smarttab' when 'paste' is set. (Christian Brabandt)
Do the same for 'expandtab'.
54f018cd59
2016-02-09 22:47:25 +01:00
watiko
69e5427be1
vim-patch:7.4.915
...
Problem: When removing from 'path' and then adding, a comma may go missing.
(Malcolm Rowe)
Solution: Fix the check for P_ONECOMMA. (closes #471 )
174674743d
2016-02-09 14:44:53 +09:00
watiko
c90c47072f
vim-patch:7.4.749
...
Problem: For some options two consecutive commas are OK. (Nikolay Pavlov)
Solution: Add the P_ONECOMMA flag.
0e7c4b99c6
2016-02-09 14:44:53 +09:00
Jurica Bradaric
59ef994f8f
vim-patch:7.4.741 #4121
...
Problem: When using += with ":set" a trailing comma is not recognized.
(Issue 365)
Solution: Don't add a second comma. Add a test. (partly by Christian
Brabandt)
a7b7b1cef9
2016-02-01 02:28:51 -05:00
watiko
a5f361e470
vim-patch:7.4.1027
...
Problem: No support for binary numbers.
Solution: Add "bin" to nrformats. (Jason Schulz)
887c1fea4a
2016-02-01 03:47:08 +09:00
watiko
43fd126298
vim-patch:7.4.782
...
Problem: Still a few problems with CTRL-A and CTRL-X in Visual mode.
Solution: Fix the reported problems. (Christian Brabandt)
5d1bc78a2b
2016-02-01 03:43:37 +09:00
Jason Schulz
f82e982bda
Fix lint issues
2016-01-15 20:32:00 -08:00
Jason Schulz
7ad3f077dc
Add support for binary numbers
2016-01-15 18:21:06 -08:00
Michael Reed
f433f569a3
Revert ROOT_UID removal
...
It helps clarify intent for those unaware of root's UID.
see https://github.com/neovim/neovim/pull/4015#discussion_r49822371
2016-01-15 03:03:18 -05:00
Michael Reed
07265d221f
Misc. macro cleanup
...
- ROOT_UID's comment is misleading, as it's always defined to 0.
- SEEK_{SET,END} & O_NOFOLLOW should already be defined on Unix-like
systems in <stdio.h> and <fcntl.h>, respectively. In any case,
neither of those #ifdef blocks should be in the middle of source files.
- The S_IS{LNK,DIR,...} macros should only be undefined on Windows.
2016-01-14 23:38:26 -05:00
Björn Linse
04bdeeb8b2
encoding: cleanup defaults of iskeyword, isprint and fileencodings
2016-01-02 23:21:51 +01:00
Björn Linse
49b06a8f2a
encoding: Always use "utf-8" as default for &encoding
...
Preverve the locale-depedency for fileencodings=default
2016-01-02 23:15:53 +01:00
Justin M. Keyes
28821397f6
Merge pull request #3836 from sethjackson/set-init-3
...
Windows: Remove broken check for WIN3264
2015-12-13 00:24:44 -05:00
Justin M. Keyes
aca51f3d93
Merge #3443 'vim-patch:7.4.{785,795,898}'
2015-12-13 00:09:07 -05:00
Seth Jackson
a9b4cedb08
Windows: Remove broken check for WIN3264.
...
We do not define WIN3264 so this check was broken.
Futher since UNIX is defined on all Unix platforms
we support we can simply remove this #ifdef.
2015-12-12 23:30:43 -05:00
Justin M. Keyes
cc203e4b93
Merge pull request #3753 from watiko/vim-7.4.790
...
Vim 7.4.{786,787,789,790}
2015-12-12 17:43:23 -05:00