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
watiko
1b56425662
Make clint status valid
2015-12-12 08:15:34 +09:00
watiko
74341ca5ca
Fix the memory leaking
2015-12-12 05:28:27 +09:00
watiko
8c684b2fdb
Revert char to char_u
2015-12-12 04:26:22 +09:00
watiko
3a60f927b8
Improve coding style
2015-12-06 07:41:09 +09:00
watiko
597547e797
Use vim_snprintf instead of sprintf
2015-11-28 20:15:28 +09:00
watiko
972b43459b
Improve coding style
2015-11-28 19:48:17 +09:00
watiko
cf673f60c6
Improve coding style
2015-11-28 18:24:57 +09:00
watiko
09f6066bb4
vim-patch:7.4.789
...
Problem: Using freed memory and crash. (Dominique Pellej)
Solution: Correct use of pointers. (Hirohito Higashi)
9cac424d05
2015-11-28 17:22:52 +09:00
watiko
789041c282
vim-patch:7.4.787
...
Problem: snprintf() isn't available everywhere.
Solution: Use vim_snprintf(). (Ken Takata)
fb9bc4829a
2015-11-28 17:22:52 +09:00
watiko
119545190c
vim-patch:7.4.786
...
Problem: It is not possible for a plugin to adjust to a changed setting.
Solution: Add the OptionSet autocommand event. (Christian Brabandt)
537443018d
2015-11-28 17:22:28 +09:00