diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-05-29 07:22:15 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-06-04 02:09:27 +0200 |
commit | 1f300e08b8c0c35b2f3d79506ae9817cd8591624 (patch) | |
tree | 26894f80f6b8d37209d492602c37205ce126380d /test | |
parent | 4211255c755513aa91d4a9277b69b557fc6658ee (diff) | |
download | rneovim-1f300e08b8c0c35b2f3d79506ae9817cd8591624.tar.gz rneovim-1f300e08b8c0c35b2f3d79506ae9817cd8591624.tar.bz2 rneovim-1f300e08b8c0c35b2f3d79506ae9817cd8591624.zip |
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).
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/core/startup_spec.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/core/startup_spec.lua b/test/functional/core/startup_spec.lua index 4223e55d90..d15faaf0a9 100644 --- a/test/functional/core/startup_spec.lua +++ b/test/functional/core/startup_spec.lua @@ -108,7 +108,7 @@ describe('startup', function() | ]]) end) - it('input from pipe (implicit) + file args #7679', function() + it('input from pipe + file args #7679', function() eq('ohyeah\r\n0 0 bufs=3', funcs.system({nvim_prog, '-n', '-u', 'NONE', '-i', 'NONE', '--headless', '+.print', @@ -121,7 +121,7 @@ describe('startup', function() { 'ohyeah', '' })) end) - it('stdin with -es, -Es #7679', function() + it('stdin with -es/-Es #7679', function() local input = { 'append', 'line1', 'line2', '.', '%print', '' } local inputstr = table.concat(input, '\n') |