Commit Graph

3930 Commits

Author SHA1 Message Date
Rui Abreu Ferreira
d00d37b486 Windows: FindLuaJit: fix libname. #3262 2015-08-31 03:16:35 -04:00
Rui Abreu Ferreira
8bf141dea7 Windows: Move file_info_old declaration out of UNIX block #3260 2015-08-31 03:08:33 -04:00
Jerome Leclanche
d50939e361 runtime: :: token is valid in C#. #3144
https://msdn.microsoft.com/en-us/library/c3ay4x3d.aspx
2015-08-31 02:58:00 -04:00
Victor Adam
6e233b93ea runtime: fix for python highlighting #3154
"""\"""" was highlighted incorrectly. The fix is simply adding skip=+\\["']+ to
the syntax of triple-quoted strings.

Closes #3151
2015-08-31 02:54:39 -04:00
Rui Abreu Ferreira
9bc1b78058 MSVC: Don't use GCC -O/-g flags. #3267 2015-08-31 02:51:49 -04:00
Felipe Morales
acdac914d5 clipboard: avoid clipboard during :global. #2809
This is equivalent to patches 7.4.396, 7.4.445 and 7.4.598.

vim-patch:7.4.396

Problem:    When 'clipboard' is "unnamed", :g/pat/d is very slow.
(Praful)
Solution:   Only set the clipboard after the last delete. (Christian
Brabandt)

1f285eb49a

vim-patch:7.4.445

Problem:    Clipboard may be cleared on startup.
Solution:   Set clip_did_set_selection to -1 during startup. (Christian
	    Brabandt)

1a19d37d90

vim-patch:7.4.598

Problem:    ":tabdo windo echo 'hi'" causes "* register not to be
changed.
	    (Salman Halim)
Solution:   Change how clip_did_set_selection is used and add
	    clipboard_needs_update and global_change_count.  (Christian
	    Brabandt)

af6a579263

Co-Author: @bfredl
2015-08-30 23:40:12 -04:00
Justin M. Keyes
7ee94d2dd7 doc: termopen(): remove 'name' feature. 2015-08-30 17:20:53 -04:00
Mathieu Xhonneux
79b6ab21d8 termopen(): remove name feature. #3181
Problem:  Commands like `:e term://top` display `term://.//PID:(null)`
instead of `term://.//PID:top`.

Solution: Remove the optional `name` argument (it allowed
ambiguous/potentially destructive cases, so it was problematic anyway).

Closes #3113
Closes #2924
2015-08-30 17:15:50 -04:00
Seth Jackson
8229651087 Windows: Define USE_CRNL on Windows. #3249 2015-08-28 03:02:40 -04:00
Rui Abreu Ferreira
3901f59876 Windows: restore 'shell', 'shellcmdflags' defaults. #3256
- On Windows the default shell is cmd.exe and the shell flag is /c
- vim-patch:0
2015-08-28 02:56:06 -04:00
Justin M. Keyes
a7ec1a5f50 vim-patch.sh: best-effort for older git. 2015-08-27 23:44:48 -04:00
Justin Gassner
aafbe5d28a vim-patch.sh: get all untagged patches #3250 2015-08-27 23:22:56 -04:00
Seth Jackson
e12d371f9d Windows: Crank to MSVC 2015 on AppVeyor. #3254 2015-08-27 23:21:04 -04:00
Yamakaky
4a8d557d44 cmake: Enable -fdiagnostics-color=auto gcc flag. #3137 2015-08-27 22:16:43 -04:00
Justin M. Keyes
f15b864239 MSVC: use MSVC instead of GCC-like compiler flags.
- We can build with /W4, but it gives thousands of warnings.
- _CRT_NONSTDC_NO_DEPRECATE disables warnings about POSIX functions.
  https://msdn.microsoft.com/en-us/library/ms235384.aspx
- _CRT_SECURE_NO_WARNINGS
  https://msdn.microsoft.com/en-us/library/8ef0s5kh.aspx
2015-08-27 22:00:34 -04:00
Seth Jackson
b9d17c6a8a Windows: avoid "uv_" naming conflicts. #3225 2015-08-27 21:47:49 -04:00
Chiu-Hsiang Hsu
56fe0c956f version.c: mark patches NA #3252
* .777 (README)
694cac7a35

* .778 (Coverity warnings) presumably fixed by 9de544c785
ae2fe73abc

* .780 (Compiler complains)
1db43b1145

* .783 (copy_chars, copy_spaces) see c729286604
2536d4f396

* .788 (fix build, #ifdef) we don't have integrated crypto, see #699
5cbb8dbc32

* .794 (Make_mvc.mak) we have a completely different build system
d4a95c3bc5

* .796 (Compiler warnings)
33c3a694fc

Reviewed-by: Michael Reed <Pyrohh@users.noreply.github.com>
2015-08-27 17:07:07 -04:00
Michael Reed
2d50a95601 os/os_defs.h cleanup: Remaining signal stuff
RETSIGTYPE, SIGRETURN, and SIGDEFARG are always defined the same, so
inline them for simplicity; SIGDUMMYARG, however, is unused, so remove
it.

Even if these things don't work on windows, the signal handler in
if_cscope.c is already wrapped with '#idef UNIX', as is its only call
site.

Reviewed-by: Justin M. Keyes <justinkz@gmail.com>
2015-08-27 16:56:05 -04:00
Michael Reed
3b99d8d0dd os/os_defs.h cleanup: SIGHASARG
It's always defined, so the #else is redundant.
2015-08-27 16:54:36 -04:00
Michael Reed
43bc42d94e os/os_defs.h cleanup: SIGHAS3ARGS
SIGHAS3ARGS appears in Vim's source code like this:

    /* List 3 arg systems here. I guess __sgi, please test and correct me. jw. */
    if defined(__sgi) && defined(HAVE_SIGCONTEXT)
     define SIGHAS3ARGS
    endif

Given we don't support SGI, remove it.
2015-08-27 16:54:36 -04:00
Michael Reed
02740689a7 os/os-defs.h cleanup: Don't include <time.h>
Any files which need definitions from <time.h> should include it,
not "os/os_defs.h".
2015-08-27 16:54:36 -04:00
Michael Reed
2b4cbbebf4 cmake: Build with -fstack-protector-strong if available #2597
If not available, fall back to -fstack-protector + --param=ssp-buffer-size=4
If that isn't available, do nothing.

See the following articles for more information:

https://lwn.net/Articles/584225/
https://outflux.net/blog/archives/2014/01/27/fstack-protector-strong/
2015-08-26 18:05:38 -04:00
Justin M. Keyes
b2ece148e6 vim-patch:7.4.836 #3244
Problem:    Accessing unitinialized memory.
Solution:   Add missing calls to init_tv(). (Dominique Pelle)

0a38dd29d6
2015-08-26 11:55:29 +02:00
Björn Linse
2e874d5120 Merge branch 'test59rb' 2015-08-26 10:33:46 +02:00
Björn Linse
2b6d1546ec test59: Store all text as utf-8 and convert when needed 2015-08-26 10:31:26 +02:00
Björn Linse
df9d7489ca test59: Delete oldtests 58 and 59 2015-08-26 10:31:08 +02:00
Björn Linse
f666b2cb12 test59: Make "syntax off" explicit, as default may change with #2675
Helped-By: Felipe Morales <hel.sheep@gmail.com>
2015-08-26 10:31:02 +02:00
Björn Linse
d4fae57a4c test59: Fixup incorrectly encoded utf-8 2015-08-26 10:30:55 +02:00
Lucas Hoffmann
a412e72a2f test59: Split tests into 1-1, etc
Helped-By: Björn Linse <bjorn.linse@gmail.com>
Fixed some output issues
2015-08-26 10:30:48 +02:00
Lucas Hoffmann
c7d58e7a56 test59: Turn the VimL test function into a lua function.
Helped-By: Björn Linse <bjorn.linse@gmail.com>
`spelldump | quit` must be in a function
2015-08-26 10:30:44 +02:00
Lucas Hoffmann
f3c67a617e test59: Write spell files from lua and use cp to get the right files in place
Use teardown to remove these temporary files
2015-08-26 10:30:44 +02:00
Lucas Hoffmann
ffe88f0d52 test59: Save source file in utf8, this will mess up a lot of characters. 2015-08-26 10:30:34 +02:00
Lucas Hoffmann
144b4954f7 test59: Turn function definition into source() call. 2015-08-26 10:30:30 +02:00
Lucas Hoffmann
e60e46596a test59: Inital clean up.
Fix some feed() calls and string delimiters
Fix trimming of buffer before final expect().
2015-08-26 10:30:25 +02:00
Lucas Hoffmann
0a495d0be8 tests: Migrate legacy test 59. 2015-08-26 10:30:22 +02:00
Justin M. Keyes
b4d29fe067 vim-patch.sh: update for git 2015-08-26 03:02:13 -04:00
John Whitley
4d39db355b vim-patch.sh: update for Vim's hg => git migration 2015-08-26 02:15:24 -04:00
Michael Reed
9602f0d589 nvim.1: Misc. improvements (2)
Besides some minor rewording, this commit does the following:

- the argument to the `q' flag is optional, so denote it as such
- the cross references to vim (`.Xr vim 1') were pointless, just refer
  to it as `Vim'
- the `d' flag doesn't actually take any arguments; `nvim -d' works
  just fine, so make the manual reflect that
- the `L' flag is just an alias for the `r' flag, so clarify that
- there was a lot of redundancy between the `o', `O', and `p' flags,
  unify their descriptions a bit

Helped-by: Justin M. Keyes <justinkz@gmail.com>

[ci skip]
2015-08-26 00:55:12 -04:00
Rui Abreu Ferreira
f81302d5b0 MSVC: include os/os_defs.h for inline. #3239 2015-08-25 23:08:39 -04:00
Michael Reed
a4856694e1 Small cleanup after #3227
HAVE_SYS_TIME_H isn't being used by anything, remove it.
2015-08-25 21:38:15 -04:00
Michael Reed
2b39453912 Move MAX and MIN macros to macros.h
vim.h is too big, and these were missing parens around the arguments.
These may already be defined in <sys/param.h> or <windef.h>, so guard
them with an #ifndef.

extracted from #810
2015-08-25 21:31:12 -04:00
Seth Jackson
7c135b8ccb MSVC: Define inline and restrict. #3237
MSVC 2015 defines __func__ (C++11).
    https://msdn.microsoft.com/en-us/library/dn919276.aspx

MSVC only allows inline in C++ and requires __inline in C instead.
    https://msdn.microsoft.com/en-us/library/bw1hbe6y.aspx
2015-08-25 19:35:39 -04:00
Nikolay Orlyuk
bbe24da869 fix strict-overflow cases #3236 2015-08-25 19:31:08 -04:00
Rui Abreu Ferreira
fc7055f6e9 Mingw: Use POSIX compatible stdio #3232
- There are some differences between stdio (*printf) functions in POSIX
  and the MS runtime, this commit enables Mingw compatibility for these
  functions
2015-08-25 19:13:23 -04:00
Justin M. Keyes
6cf2925f63 screen.c: remove screen_char_attr #3235
screen_char_attr is always 0, it was obviated by
3baba1e7bc.

References #1889
2015-08-25 18:59:41 -04:00
Chiu-Hsiang Hsu
54973477e7 vim-patch:7.4.799
Problem:    Accessing memory before an allocated block.
Solution:   Check for not going before the start of a pattern.  (Dominique Pelle)

https://github.com/vim/vim/commit/v7-4-799
2015-08-25 18:43:49 -04:00
Seth Jackson
2753be6e4d Windows: Define ssize_t and SSIZE_MAX. #3228
Remove R_OK, W_OK defines because os/os.h includes <uv.h> which includes
uv-win.h which defines R_OK and W_OK.
2015-08-25 18:31:22 -04:00
Rui Abreu Ferreira
5066128d48 Windows: Accept CRLF in msgpack-gen.lua grammar #3226
- MSVC generates output using Windows newlines (\r\n) instead of (\n).
2015-08-24 04:35:44 -04:00
Felipe Morales
45121a267f defaults: set 'laststatus' to 2. #2876 2015-08-24 00:48:32 -04:00
Justin M. Keyes
7280e8c365 remove references to <sys/time.h>
Since gettimeofday() was replaced by os_time in
fb5a786bdb we do not need sys/time.h.
2015-08-24 00:27:30 -04:00