Lucas Hoffmann
4d10024a56
API: Remove path prefix from command name in nvim_get_proc()
...
On macOS the output from `ps -o comm` might contain the full path of the
executable. The `ucomm` would be the basename only but is less portable
(see previous commit).
2018-08-18 14:37:33 +02:00
Jan Edmund Lazo
0223c81457
lint
2018-08-17 22:07:55 -04:00
Jan Edmund Lazo
7482aef113
normal: don't check has_mbyte
...
has_mbyte is always true for nvim.
2018-08-17 22:07:55 -04:00
Jan Edmund Lazo
f46728c241
vim-patch:8.0.1091: test for <cexpr> fails without +balloon_eval feature
...
Problem: Test for <cexpr> fails without +balloon_eval feature.
Solution: Remove #ifdefs.
95c83c64be
2018-08-17 22:07:55 -04:00
Jan Edmund Lazo
3d71366af1
vim-patch:8.0.1090: cannot get the text under the cursor like v:beval_text
...
Problem: cannot get the text under the cursor like v:beval_text
Solution: Add <cexpr>.
65f084749b
2018-08-17 17:36:40 -04:00
Jan Edmund Lazo
f53c95e7a8
vim-patch:8.1.0159: completion for user names does not work for a prefix.
...
Problem: Completion for user names does not work if a prefix is also a full
matching name. (Nazri Ramliy)
Solution: Accept both full and partial matches. (Dominique Pelle)
6c5d104302
2018-08-17 17:36:40 -04:00
Jan Edmund Lazo
f5b7fd5fa3
ex_docmd: forceit,usefilter are bool
2018-08-17 09:07:15 -04:00
Björn Linse
c7db42faab
Merge pull request #8859 from bfredl/cmdline_norm
...
cmdline: always use save_cmdline before command_line_enter
2018-08-17 13:33:47 +02:00
Björn Linse
4a46ab8de9
cmdline: always use save_cmdline before command_line_enter
...
":normal :" might be invoked in various ways, so its safest to always
allow recursive invocation of cmdline mode
2018-08-17 10:48:48 +02:00
Jan Edmund Lazo
58ad7fc578
ops: refactor get_spec_reg()
...
Return value is bool.
errmsg (param) is bool in here and in getaltfname().
allocated (param) is bool.
2018-08-16 23:05:33 -04:00
Jan Edmund Lazo
015df9c66e
vim-patch:8.0.1787: cannot insert the whole cursor line
...
Problem: Cannot insert the whole cursor line.
Solution: Make CTRL-R CTRL-L work. (Andy Massimino, closes vim/vim#2857 )
e2c8d83926
2018-08-16 21:33:30 -04:00
Jan Edmund Lazo
68cd18eb04
vim-patch:8.1.0101: no test for getcmdwintype()
...
Problem: No test for getcmdwintype().
Solution: Add a test. (Dominique Pelle, closes vim/vim#3068 )
81612b7a7d
2018-08-16 12:56:51 -04:00
Jan Edmund Lazo
14b148f0ad
vim-patch:8.0.1816: no test for setcmdpos()
...
Problem: No test for setcmdpos().
Solution: Add a test. (Dominique Pelle, closes vim/vim#2901 )
ff3be4fe1e
2018-08-16 12:30:15 -04:00
Jan Edmund Lazo
1dcdac013e
vim-patch:8.0.1649: no completion for argument list commands
...
Problem: No completion for argument list commands.
Solution: Add arglist completion. (Yegappan Lakshmanan, closes vim/vim#2706 )
cd43effeca
2018-08-16 11:47:56 -04:00
Jan Edmund Lazo
be552c8340
vim-patch:8.0.1231: expanding file name drops dash
...
Problem: Expanding file name drops dash. (stucki)
Solution: Use the right position. (Christian Brabandt, closes vim/vim#2184 )
c312b8b87a
2018-08-16 11:08:00 -04:00
Jan Edmund Lazo
6531b175ad
vim-patch:8.0.0878: no completion for :mapclear
...
Problem: No completion for :mapclear.
Solution: Add completion (Nobuhiro Takasaki et al. closes vim/vim#1943 )
cae92dc3d5
2018-08-16 10:42:13 -04:00
Jan Edmund Lazo
c03fc7ef3e
vim-patch:8.0.1509: test for failing drag-n-drop command no longer fails
...
Problem: Test for failing drag-n-drop command no longer fails.
Solution: Check for the "dnd" feature.
294959528e
2018-08-16 03:22:48 -04:00
Jan Edmund Lazo
0f9622ca25
vim-patch:8.0.1508: the :drop command is not always available
...
Problem: The :drop command is not always available.
Solution: Include :drop in all builds. (Yasuhiro Matsumoto, closes vim/vim#2639 )
5a656864a0
2018-08-16 03:16:14 -04:00
ZviRackover
d110c6d790
lint: cleanup after parent commits
2018-08-16 07:39:48 +03:00
ZviRackover
30392b6356
Remove has_mbyte from lines near changes in parent commit
2018-08-16 06:03:49 +03:00
Jan Edmund Lazo
b10d822a77
vim-patch:8.1.0186: test for getwininfo() fails in GUI
...
Problem: Test for getwininfo() fails in GUI.
Solution: Account for missing tabline.
44a693a1bd
2018-08-15 21:17:33 -04:00
Jan Edmund Lazo
2036d04284
vim-patch:8.1.0184: not easy to figure out the window layout
...
Problem: Not easy to figure out the window layout.
Solution: Add "wincol" and "winrow" to what getwininfo() returns.
b6959a8e06
2018-08-15 20:37:53 -04:00
ZviRackover
2bddc4ca54
Remove occurences of mb_head_off
2018-08-15 22:02:33 +03:00
Jan Edmund Lazo
b89c08901c
vim-patch:8.0.1364: there is no easy way to get the window position
...
Problem: There is no easy way to get the window position.
Solution: Add win_screenpos().
22044dc317
2018-08-15 12:20:46 -04:00
Björn Linse
b5cfac0894
Merge pull request #8806 from bfredl/bce
...
tui: fix resize and use BCE more often
2018-08-15 13:02:20 +02:00
Lucas Hoffmann
794e7b4359
API: Use ps -o comm
in nvim_get_proc()
...
- The POSIX version of ps(1) only specifies "comm" for the "-o" option
but not "ucomm". See
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ps.html
- On Linux (with the procps-ng package) "ucomm" is an alias for "comm".
See https://gitlab.com/procps-ng/procps
- OpenBSD also has "ucomm" as an alias for "comm" (with the extra note
"Name to be used for accounting."). See https://man.openbsd.org/ps
- FreeBSD describes "ucomm" as "Name to be used for accounting." but
does not say that it should be an alias for "comm". See
https://www.freebsd.org/cgi/man.cgi?query=ps
2018-08-15 12:39:10 +02:00
Justin M. Keyes
ac2d661450
Merge #8829 from ZviRackover/fix-7401-step2
2018-08-15 10:28:53 +02:00
Justin M. Keyes
bdcd3c31c6
Merge #8852 from janlazo/vim-8.1.0161
2018-08-15 10:26:21 +02:00
Justin M. Keyes
26506f14bc
Merge #8856 from janlazo/vim-8.0.1209
2018-08-15 10:18:22 +02:00
Jan Edmund Lazo
be1525d3c9
lint
2018-08-15 02:13:13 -04:00
Jan Edmund Lazo
a0938e068f
vim-patch:8.0.1633: a TextChanged autocmd triggers when it is defined
...
Problem: A TextChanged autocmd triggers when it is defined after creating a
buffer.
Solution: Set b_last_changedtick when opening a buffer. (Hirohito Highlight,
closes vim/vim#2742 )
8c64a36e40
2018-08-15 01:27:30 -04:00
Jan Edmund Lazo
ee37a0c79a
vim-patch:8.0.1413: accessing freed memory in :cbuffer
...
Problem: Accessing freed memory in :cbuffer.
Solution: Get quickfix list after executing autocmds. (closes vim/vim#2470 )
aaf6e43b7a
2018-08-15 01:27:30 -04:00
Jan Edmund Lazo
0bdd4e8393
oldtests: finish port of 8.0.1224
2018-08-15 01:27:30 -04:00
Jan Edmund Lazo
8e2a892e70
vim-patch:8.0.1409: buffer overflow in :tags command
...
Problem: Buffer overflow in :tags command.
Solution: Use vim_snprintf(). (Dominique Pelle, closes vim/vim#2471 , closes vim/vim#2475 )
Add a test.
132f75255e
2018-08-15 01:27:30 -04:00
Jan Edmund Lazo
1daf2cb0ea
vim-patch:8.0.1488: emacs tags no longer work
...
Problem: Emacs tags no longer work. (zdohnal)
Solution: Do not skip over end of line.
0d20737732
2018-08-15 01:27:30 -04:00
Jan Edmund Lazo
5e38ff105c
vim-patch:8.0.1218: writing to freed memory in autocmd
...
Problem: Writing to freed memory in autocmd.
Solution: Make a copy of the tag line. (Dominique Pelle, closes vim/vim#2245 )
8d84ff1a3c
2018-08-15 01:27:30 -04:00
Jan Edmund Lazo
84569693e1
vim-patch:8.0.1209: still too many old style tests
...
Problem: Still too many old style tests.
Solution: Convert a few more tests to new style. (Yegappan Lakshmanan,
closes vim/vim#2230 )
53f0c96239
2018-08-15 01:27:30 -04:00
Björn Linse
5a0d0286ff
TUI: use BCE again more often, as it provides smoother resizes and scrolling
...
add exceptions for terminals we know doesn't support BCE
2018-08-14 12:34:35 +02:00
Björn Linse
5fad02c081
tui: reenable cursor movement optimizations (leftover from #8221 )
2018-08-14 12:34:35 +02:00
Björn Linse
e5bcf83380
tui: hack for invalid first line with non-bce resize
2018-08-14 12:34:35 +02:00
Björn Linse
6c5f9219ef
tui: use bce properly
2018-08-14 12:34:35 +02:00
Björn Linse
f767cee100
Merge pull request #8790 from bfredl/hlattr
...
pass highlight attrs per value and thread-safely to TUI thread
2018-08-14 12:33:12 +02:00
ZviRackover
999d33faf4
lint: clean up after parent commit
2018-08-14 08:38:38 +03:00
Jan Edmund Lazo
538ace9aae
oldtests: win: a directory is not executable
...
Tests in 'test/functional/core/job_spec.lua' depend on this behavior.
2018-08-13 22:07:25 -04:00
Justin M. Keyes
bec5e4cb61
Merge #8832 from eraserhd/vim-insert-setline-undo-fixes
2018-08-14 02:17:05 +02:00
Jan Edmund Lazo
a1a5e35e9a
vim-patch:8.1.0262: not enough testing for getftype()
...
Problem: Not enough testing for getftype().
Solution: Add a test. (Dominique Pelle, closes vim/vim#3300 )
1598f9937a
2018-08-13 16:06:29 -04:00
Jan Edmund Lazo
163680a58e
vim-patch:8.0.1630: trimming white space is not that easy
...
Problem: Trimming white space is not that easy.
Solution: Add the trim() function. (Bukn, closes vim/vim#1280 )
295ac5ab5e
2018-08-13 12:04:36 -04:00
Jan Edmund Lazo
e346c01c31
vim-patch:8.1.0161: buffer not updated with 'autoread' set if file was deleted
...
Problem: Buffer not updated with 'autoread' set if file was deleted.
(Michael Naumann)
Solution: Don't set the timestamp to zero. (closes vim/vim#3165 )
386bc82a3f
Sleep 2 seconds for autoread (https://github.com/neovim/neovim/pull/7592 ).
2018-08-13 11:33:04 -04:00
ZviRackover
7676fc7562
Remove occurrences of 'has_mbyte' near lines changes by parent commit
2018-08-13 18:07:40 +03:00
ZviRackover
7046258a38
Remove all occurrences of mb_off2cells
2018-08-13 18:07:40 +03:00