James McCoy
6c0f1903e6
functionaltest: Use octal escapes for printf
...
According to POSIX[0], only octal escapes are supported by the printf
command. GNU coreutils' printf and some shells' builtin printf versions
which support hex escapes, but dash and non-GNU printf do not.
[0]: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/printf.html
2018-06-13 23:03:37 -04:00
Björn Linse
050f3975f6
options: remove 'maxcombine` option (always use 6)
2018-06-13 10:11:35 +02:00
Björn Linse
315b7f8632
test/ui: doublewidth rendering. multibyte and cmdwin chars in folded lines ( #8534 )
2018-06-12 17:57:47 +02:00
Justin M. Keyes
44c6deb91a
NVIM v0.3.0
...
FEATURES:
3cc7ebf810
#7234 built-in VimL expression parser
6a7c904648
#4419 implement <Cmd> key to invoke command in any mode
b8363283fa
#7679 'startup: treat stdin as text instead of commands'
58b210e114
:digraphs : highlight with hl-SpecialKey #2690
7a13611ba2
#8276 'startup: Let `-s -` read from stdin'
1e71978cf0
events: VimSuspend, VimResume #8280
1e7d5e8cdf
#6272 'stdpath()'
f96d99ad11
#8247 server: introduce --listen
e8c39f72fd
#8226 insert-mode: interpret unmapped META as ESC
98e7112390
msg: do not scroll entire screen (#8088 )
f72630b784
#8055 let negative 'writedelay' show all redraws
5d2dd2ebe2
win: has("wsl") on Windows Subsystem for Linux #7330
a4f6cec7a3
cmdline: CmdlineEnter and CmdlineLeave autocommands (#7422 )
207b7ca4bc
#6844 channels: support buffered output and bytes sockets/stdio
API:
f85cbea725
#7917 API: buffer updates
418abfc9d0
#6743 API: list information about all channels/jobs.
36b2e3f743
#8375 API: nvim_get_commands
273d2cd5d5
#8329 API: Make nvim_set_option() update `:verbose set …`
8d40b3617c
#8371 API: more reliable/descriptive VimL errors
ebb1acb3c0
#8353 API: nvim_call_dict_function
9f994bb699
#8004 API: nvim_list_uis
34057045be
#7520 API/UI: forward option updates to UIs
911b1e49ab
#7821 API: improve nvim_command_output
WINDOWS OS:
9cefd83cc7
#8084 , #8516 build/win: support MSVC
ee4e1fd8ec
win: Fix reading content from stdin (#8267 )
TUI:
ffb8904913
#8309 TUI: add support for mouse release events in urxvt
8d5a46e77b
#8081 TUI: implement "standout" attribute
60716371e9
TUI: support TERM=konsole-256color
67848c0b91
#7653 TUI: report TUI info with -V3 ('verbose' >= 3)
3d0ee17c91
TUI/rxvt: enable focus-reporting
d109f5645b
#7640 TUI: 'term' option: reflect effective terminal behavior
FIXES:
ed6a113804
#8273 'job-control: avoid kill-timer race'
4e02f1ab87
#8107 'jobs: separate process-group'
451c48a092
terminal: flush vterm output buffer on pty output #8486
5d6732ff09
:checkhealth fixes #8335
53f11dcfc7
#8218 'Fix errors reported by PVS'
d05712fbe7
inccommand: pause :terminal redraws (#8307 )
51af911a27
inccommand: do not execute trailing commands #8256
84359a467f
terminal: resize to the max dimensions (#8249 )
d49c1dda8b
#8228 Make vim_fgets() return the same values as in Vim
60e96a45b4
screen: winhl=Normal:Background should not override syntax (#8093 )
0c59ac1a2c
#5908 'shada: Also save numbered marks'
ba87a2cde7
cscope: ignore EINTR while reading the prompt (#8079 )
b1412dc412
#7971 ':terminal Enter/Leave should not increment jumplist'
3a5721e91b
TUI: libtermkey: force CSI driver for mouse input #7948
6ff13d78b7
#7720 TUI: faster startup
1c6e956079
#7862 TUI: fix resize-related segfaults
a58c9094db
#7676 TUI: always hide cursor when flushing, never flush buffers during unibilium output
303e1df13f
#7624 TUI: disable BCE almost always
249bdb07dd
#7761 mark: Make sure that jumplist item will not have zero lnum
6f41ce0260
#7704 macOS: Set $LANG based on the system locale
a043899ba2
#7633 'Retry fgets on EINTR'
CHANGES:
ad60927d09
#8304 default to 'nofsync'
f3f1970597
#8035 defaults: 'fillchars'
a6052c7307
#7984 defaults: sidescroll=1
b69fa866db
#7888 defaults: enable cscopeverbose
7c4bb23ff3
defaults: do :filetype stuff unless explicitly "off"
2aa308c685
#5658 'Apply :lmap in macros'
8ce6393048
terminal: Leave 'relativenumber' alone (#8360 )
e46534b423
#4486 refactor: Remove maxmem, maxmemtot options
131aad953c
win: defaults: 'shellcmdflag', 'shellxquote' #7343
c57d315963
#8031 jobwait(): return -2 on interrupt also with timeout
6452831cf9
clipboard: macOS: fallback to tmux if pbcopy is broken #7940
300d3651e2
#7919 Make 'langnoremap' apply directly after a map
ada1956206
#7880 'lua/executor: Remove lightuserdata'
INTERNAL:
de0a9548f7
#7806 internal statistics for list impl
dee78a4095
#7708 rewrite internal list impl
2018-06-11 00:46:49 +02:00
Justin M. Keyes
dc5fdbc758
test: fix startup_spec
...
This behavior was changed (improved) by 5861dc5966
which actually
makes -E more faithful to Vim's behavior.
2018-06-10 16:27:13 +02:00
Justin M. Keyes
b8363283fa
Merge #7679 'startup: treat stdin as text instead of commands'
2018-06-10 15:10:59 +02:00
Justin M. Keyes
f85cbea725
Merge #7917 'API: buffer updates'
2018-06-08 10:13:04 +02:00
林千里
451c48a092
terminal: flush vterm output buffer on pty output #8486
...
Fixes #4151
libvterm uses an "output buffer" for terminal reporting
(e.g. \e[6n to report cursor position)
Flush it in on_channel_output() not just terminal_send_key()
See also this line from pangoterm:
https://bazaar.launchpad.net/~leonerd/pangoterm/trunk/view/607/pangoterm.c#L2159
2018-06-08 02:18:27 +02:00
Justin M. Keyes
db68d1d638
Merge #8491 from janlazo/vim-8.0.0255
2018-06-07 18:31:50 +02:00
Jan Edmund Lazo
e0d39d8e53
vim-patch:8.0.0256: missing changes to one file breaks test
...
Problem: Tests fail because some changes were not included.
Solution: Add changes to evalfunc.c
3a29abcb61
2018-06-07 12:02:57 -04:00
Justin M. Keyes
3abf17ae88
API: validation: mention invalid method name ( #8489 )
2018-06-07 10:56:44 +02:00
Jan Edmund Lazo
7f6c1d256f
vim-patch:8.0.0254: error message of assert functions ( #8488 )
...
Problem: When using an assert function one can either specify a message or
get a message about what failed, not both.
Solution: Concatenate the error with the message.
c7b831ca15
2018-06-07 09:59:45 +02:00
Justin M. Keyes
5861dc5966
Merge #8461 from bfredl/scrollstatus
2018-06-06 00:34:08 +02:00
Jan Edmund Lazo
f274b84e1e
test: give more time for nodejs
...
Link neovim package to project root directory.
Increase delay to 3 seconds.
Reduce the total lines in temporary node scripts.
2018-06-04 19:42:28 -04:00
Justin M. Keyes
d8c7ff1335
cleanup, test interactive -E
2018-06-04 02:09:28 +02:00
Justin M. Keyes
1f300e08b8
win/startup: remove --literal
...
Fixes 2 failing tests in startup_spec.lua.
The Windows-only `--literal` option complicates support of "stdin-as-text
+ file-args" (#7679 ). Could work around it, but it's not worth
the trouble:
- users have a reasonable (and englightening) alternative: nvim +"n *"
- "always literal" is more consistent/predictable
- avoids platform-specific special-case
Unrelated changes:
- Replace fileno(stdxx) with STDXX_FILENO for consistency (not motivated
by any observed technical reason).
2018-06-04 02:09:27 +02:00
Justin M. Keyes
4211255c75
startup: allow explicit "-" file arg with --headless
2018-06-04 02:09:27 +02:00
Justin M. Keyes
63058fb5b0
startup: fix -es/-Es so they are actually silent
...
silent-mode (-es/-Es) has been broken for years. The workaround up to
now was to include --headless. But --headless is not equivalent because
it prints all messages, not the limited subset defined by silent-mode.
2018-06-04 02:09:27 +02:00
Justin M. Keyes
51e817dc1b
startup: stdin as text instead of commands
...
Treat stdin as text by default (so the "-" file is not needed):
echo foo | nvim
It works with file args (implemented in next commit), too:
echo foo | nvim file1.txt file2.txt
Why? Because:
- Execution of input is (1) almost always unintentional/confusing,
and (2) potentially destructive.
- Avoids the need for time-delayed warning. #7659
- The _common_ case is to open text in a buffer, not send commands.
Note:
- Not for Ex-mode (-es) because it is used by scripts. But maybe `-Es`?
- Not for --headless, because stdio may be a protocol stream and may be
used for any purpose by stdioopen().
To treat stdin as Normal-mode commands, use `-s -` instead:
echo ifoo | nvim -s -
Other alternatives:
- Replay a register. E.g. the following mostly works, except @q aborts
on any "beep" (e.g. if the cursor can't move).
nvim -c '%d q|norm @q' -
- Future: Let `:%source` work with unsaved buffer contents?
closes #2087
closes #7659
2018-06-04 02:07:39 +02:00
Justin M. Keyes
402a797d08
Merge #8456 'API: nvim_list_uis: include channel id'
2018-06-03 08:29:45 +02:00
Björn Linse
37e00c6e65
ex_getln: remove msg_scrolled cargo-cult magic, fixes #8251
2018-06-02 10:07:07 +02:00
Björn Linse
1efe65a155
ex_getln: don't redraw statusline on top of scrolled messages
2018-06-02 09:39:39 +02:00
Alexander Karle
39a03c0fe7
wildmenu: close before redrawing statusline ( #8453 )
...
Fixes #8385
2018-06-02 00:22:53 +02:00
Björn Linse
5be3865ce7
nvim_list_uis: include channel id
2018-06-01 10:20:13 +02:00
Jan Edmund Lazo
e21f454e11
fixup: always delete Xfile, fix exit code check
...
after_each + os.remove ensures Xfile is deleted after every test.
Windows exit code is inconsistent.
2018-05-25 07:43:02 -04:00
Jan Edmund Lazo
05282069db
win: test: close shada file before os.remove
2018-05-24 22:11:16 -04:00
Jan Edmund Lazo
51db8ebf67
win: test: delete sautest/
2018-05-24 22:11:15 -04:00
Jan Edmund Lazo
64177e3e98
win: test: don't test symlink if not admin user
2018-05-24 22:11:14 -04:00
Jan Edmund Lazo
209f05b487
win: test: disable non-admin failing tests
...
mkfifo (msysgit) does not work outside of msys2 environment.
gzip tests fail on Windows.
mklink requires admin privs for file symbolic links so mklink fails.
2018-05-24 22:11:12 -04:00
KillTheMule
333679ad0e
Add empty options dict to buf_attach
2018-05-23 22:07:27 +02:00
KillTheMule
65e7f6f0b9
Rename some more, fixe borked renaming
2018-05-23 22:07:27 +02:00
KillTheMule
0bee3925ab
Send changedtick as first event if buffer contents weren't requested
2018-05-23 22:07:27 +02:00
KillTheMule
ad151847f1
Unify updates_start and updates to lines_event
...
Also rename changedtick -> changedtick_event
2018-05-23 22:07:27 +02:00
KillTheMule
3866137eed
Update test
2018-05-23 22:07:27 +02:00
KillTheMule
e7451f8a91
Some renamings and doc changes
2018-05-23 22:07:27 +02:00
KillTheMule
de5d1e863c
Try fixing that test on travis
2018-05-23 22:07:27 +02:00
KillTheMule
5aa8af7cdb
Increase sendkeys timeout
2018-05-23 22:07:27 +02:00
KillTheMule
6bdcbef2f5
The grand renaming
2018-05-23 22:07:27 +02:00
KillTheMule
ec215a1962
Fix tests on windows
...
`cat` is distributed with neovim, so when can use it everywhere, as
opposed to `sort`.
The diffget test fails for unknown reasons on appveyor, mark it pending
for now.
2018-05-23 22:07:27 +02:00
KillTheMule
0476e0aef3
Make LiveUpdate return lastline instead of numreplaced
...
In analogy to `nvim_buf_set_lines`.
2018-05-23 22:07:27 +02:00
KillTheMule
37b8e95fd6
Lint
2018-05-23 22:07:27 +02:00
KillTheMule
8bcc011959
Make separate functions to start/stop live updates
2018-05-23 22:07:27 +02:00
KillTheMule
bafae1c427
Add argument to not send a buffers content when updates are enabled
...
Add a test.
2018-05-23 22:07:27 +02:00
Peter Hodge
79184809bb
Tests for buffer updates
...
Originally written by @phodge in
https://github.com/neovim/neovim/pull/5269 .
2018-05-23 22:07:27 +02:00
Björn Linse
6da4548f0e
api: list information about all channels/jobs.
...
Fire autocmd when channel opens or its info changes.
Add a way for API clients can describe themselves.
2018-05-23 18:18:16 +02:00
Justin M. Keyes
d995825c66
Merge #8377 'TextChangedP autocommand'
2018-05-19 11:44:52 +02:00
Justin M. Keyes
3de81ea351
test: inccommand_spec: retry unreliable test ( #8311 )
2018-05-18 19:41:14 +02:00
Justin M. Keyes
2ed2939597
Merge #8406 'stdpath(): handle NULL default values'
2018-05-18 19:33:28 +02:00
Justin M. Keyes
26d5a981eb
do not pass NULL to os_getenv
...
closes #8393
2018-05-18 19:04:37 +02:00
Björn Linse
a676c658cc
channel: avoid references to non-rooted vimL list with output
...
likely fixes #7768 #7913
If multiple internal stream callbacks were recieved before vimL
callbacks got called, only invoke one vimL callback with all data.
2018-05-17 19:09:32 +02:00