Thiago de Arruda
f08fe552f4
test: Fix screen.lua eol_clear method.
2015-01-22 08:54:37 -03:00
Pavel Platto
1d5222985c
vim-patch:7.4.492
...
Problem: In Insert mode, after inserting a newline that inserts a comment
leader, CTRL-O moves to the right. (ZyX) Issue 57.
Solution: Correct the condition for moving the cursor back to the NUL.
(Christian Brabandt)
https://code.google.com/p/vim/source/detail?r=v7-4-492
2015-01-19 23:39:01 +02:00
Justin M. Keyes
c7f4e55362
Merge pull request #1798 from oni-link/fix.job.wait
...
job.c: Prevent early return from job_wait().
2015-01-18 13:23:17 -05:00
oni-link
d7d1b11332
Tests for system()/systemlist() when interrupted with CTRL-C.
2015-01-17 16:34:58 +01:00
Nicolas Hillegeer
522a15f1c0
test: fix formatc.lua oddity on OSX/gcc
...
The primitive C canonicalizer we use to strip out duplicate header
declarations and keep luajit's ffi happy, didn't work properly in this case.
What happened is this (in /usr/include/ctype.h):
__DARWIN_CTYPE_TOP_inline int
isspecial(int _c)
{
return (__istype(_c, _CTYPE_T));
}
Gets preprocessed to something like:
__inline int
isspecial(int _c)
{
return (__istype(_c, _CTYPE_T));
}
On OSX/gcc. The formatter wasn't recognizing this entire function as
something to put on a single line because it naively just checks for
"static" or "inline" for that, but not "__inline".
This error doesn't occur on OSX/clang. Without looking further into it, I
guess that __DARWIN_CTYPE_TOP_inline gets defined to inline on clang, but
__inline on gcc, for some reason.
This helps issue #1572 along.
2015-01-16 21:45:00 +01:00
Nicolas Hillegeer
dd25b2e5ae
test/os/fs: fix call to lfs.attributes
...
The second argument to lfs.attributes() serves only to select a specific
part of the normally returned table. It's not a file open flag (e.g.: as for
fopen() in C). Also made the (n)eq checks a bit more idiomatic.
Fixes #1831
2015-01-16 21:44:25 +01:00
Thiago de Arruda
dc18fa256f
test: Add more functional test to cover new code
...
- emulate gui_running and terminal colors
- scrolling/clearing regions
- mouse wheel scrolling
- setting icon/title
- :stop/:suspend
- screen resize
2015-01-15 09:01:25 -03:00
Thiago de Arruda
8596776bf6
ui: Implement set_{title,icon}
2015-01-14 08:31:20 -03:00
Thiago de Arruda
ea771ac559
test: Add Screen.debug for inspecting screens of hanging tests
2015-01-13 21:21:20 -03:00
Thiago de Arruda
29bc6dfabd
ui: Add 'rgb' parameter to ui_attach
...
When set to false, nvim will send cterm color numbers with `highlight_set`.
2015-01-13 11:54:52 -03:00
Thiago de Arruda
3e83e44792
input: Ignore invalid "<" key sequences
...
Ignoring invalid key sequences simplifies input handling in UIs. The only
downside is having to use "<lt>" everytime a "<" is needed on functional tests.
2015-01-13 11:54:51 -03:00
Thiago de Arruda
17b211d288
test: Remove unnecessary command from highlight_spec
2015-01-13 11:54:51 -03:00
Thiago de Arruda
926503c84e
ui: Fix ui resizing and change some method names
2015-01-13 11:54:28 -03:00
Thiago de Arruda
fc8f768690
ui: Add update_fg/update_bg methods
...
It is necessary to notify the UI when the default background/foreground colors
change in order to render correctly.
2015-01-13 11:53:27 -03:00
Thiago de Arruda
1ccbd94bee
test: Fix clear/eol_clear in screen.lua
...
These functions need to operate on the current the scroll region.
2015-01-13 11:53:27 -03:00
Justin M. Keyes
d7e18b5c95
Revert "[WIP] "abstract_ui" fixes and improvements"
2015-01-12 10:14:52 -05:00
Thiago de Arruda
d992213678
ui: Reimplement :suspend
command for remote UIs.
...
- Remove suspend method from the UI protocol
- Handle `:suspend` by disconnecting the last channel that sent a request to
nvim.
2015-01-12 09:47:41 -03:00
Thiago de Arruda
74c247f75b
ui: Add 'rgb' parameter to ui_attach
...
When set to false, nvim will send cterm color numbers with `highlight_set`.
2015-01-12 09:47:41 -03:00
Thiago de Arruda
0219c87534
input: Ignore invalid "<" key sequences
...
Ignoring invalid key sequences simplifies input handling in UIs. The only
downside is having to use "<lt>" everytime a "<" is needed on functional tests.
2015-01-12 09:47:40 -03:00
Thiago de Arruda
d50d79831e
test: Remove unnecessary command from highlight_spec
2015-01-12 09:47:40 -03:00
Thiago de Arruda
213c3c3e53
ui: Fix ui resizing and change some method names
2015-01-12 09:47:34 -03:00
Thiago de Arruda
4f5f246a95
ui: Add update_fg/update_bg methods
...
It is necessary to notify the UI when the default background/foreground colors
change in order to render correctly.
2015-01-10 21:41:31 -03:00
Thiago de Arruda
209b5ed6ba
test: Fix eol_clear in screen.lua
...
It should only clear to the end of the current scroll region(this is the
behavior expected by nvim)
2015-01-10 21:41:31 -03:00
Justin M. Keyes
a31bcfb98a
Merge pull request #1742 from fwalch/vim-7.4.552
...
vim-patch:7.4.552
2014-12-30 00:10:26 -05:00
Justin M. Keyes
13d950f6ed
Merge pull request #1738 from fwalch/vim-7.4.549
...
vim-patch:7.4.549
2014-12-30 00:03:44 -05:00
Justin M. Keyes
ec615012a7
vim-patch:6a598be test for 7.4.487
...
https://code.google.com/p/vim/source/detail?r=6a598be6d4e8
2014-12-29 23:48:23 -05:00
Florian Walch
183b4b60b6
vim-patch:750a698
...
Add new files for 7.4.549.
https://code.google.com/p/vim/source/detail?r=750a6986aa86a2bb3346631a353913b899d86748
2014-12-27 13:16:54 +01:00
Florian Walch
e27460b60c
vim-patch:7.4.552
...
Problem: Langmap applies to Insert mode expression mappings.
Solution: Check for Insert mode. (Daniel Hahler)
https://code.google.com/p/vim/source/detail?r=v7-4-552
2014-12-26 16:54:24 +01:00
Florian Walch
e06159e6ae
vim-patch:7.4.488
...
Problem: test_mapping fails for some people.
Solution: Set the 'encoding' option. (Ken Takata)
https://code.google.com/p/vim/source/detail?r=v7-4-488
2014-12-23 21:23:49 +01:00
Florian Walch
6aecbbebfd
vim-patch:7.4.483
...
Problem: A 0x80 byte is not handled correctly in abbreviations.
Solution: Unescape special characters. Add a test. (Christian Brabandt)
https://code.google.com/p/vim/source/detail?r=v7-4-483
2014-12-23 21:23:32 +01:00
Julian Mehne
84dda11ec3
Remove superfluous settings from legacy tests.
2014-12-18 00:50:17 +01:00
Thiago de Arruda
40977e78a2
input: Recognize mouse events for abstract_ui
2014-12-10 07:51:06 -03:00
Michael Reed
365cf90efb
docs: Remove EBCDIC remnants
2014-12-09 19:25:07 -05:00
Thiago de Arruda
1192fbd08a
test: Add screen test facility
...
- Add screen.lua which implements a remote screen to verify screen state by
tests under functional/ui
- Add some basic screen/highlight tests
2014-12-09 08:36:16 -03:00
Björn Linse
6ddbe6d9be
clipboard: fix let @+ = ...
and add test
2014-12-08 22:05:05 +01:00
Björn Linse
d9639d3a9b
clipboard: add functional test
2014-12-08 22:05:05 +01:00
Justin M. Keyes
01fc0efdca
Merge pull request #1341 from splinterofchaos/api-nul
...
Api: Improve Nul handling
2014-12-06 20:19:08 -05:00
Scott Prager
cea5092f40
api: Add tests for when not to handle NULs.
2014-12-06 17:29:39 -05:00
Scott Prager
460843b4cd
api: Handle NULs and newlines in buffer_*_line.
2014-12-06 17:29:38 -05:00
Julian Mehne
42891ea9d9
Make migrated test33 more similar to old legacy test.
...
Remove `expandtab` and add a missing trailing space from the legacy test.
2014-12-06 13:43:14 +01:00
Thiago de Arruda
a31b06c44d
deps: Update lua client
2014-12-05 14:23:37 -03:00
Björn Linse
b3151af69c
systemlist: test empty lines in beginning and middle of output
2014-12-02 16:53:16 +01:00
Björn Linse
1464b0eda2
systemlist: add keepempty
option to preserve final newline
2014-12-02 16:50:52 +01:00
Scott Prager
275f6e3a6b
mch_early_init() -> early_init().
...
Move general initialization functions to early_init, which simplifies
test/unit/helpers.lua, which requires all these functions.
2014-11-28 14:27:58 -05:00
Rui Abreu Ferreira
84eb118f62
Functional tests for feedkeys CSI escaping
...
- tests for vim_feedkeys and replace_termcodes
2014-11-27 08:33:53 -03:00
John Szakmeister
78618d742b
Avoid printing an error response when detecting xclip.
...
While we're at, using the slightly more portable `command -v` technique
to detect the executable. Also, there's no need to use `io.popen()` if
we aren't going to record the path. Instead, let's use the simpler
`os.execute()` to detect the presence of xclip.
2014-11-26 17:31:51 -05:00
Justin M. Keyes
c83dfa20bd
Merge pull request #1543 from jszakmeister/fix-broken-functional-tests
...
Fix broken functional test.
2014-11-25 17:06:53 -05:00
Thiago de Arruda
99809903bb
deps: Update bundled lua client version
...
The new version fixes defunct processes which causes random test failures on
some systems(#1519 )
2014-11-25 14:47:54 -03:00
John Szakmeister
db914e8b61
Fix broken functional test.
...
In Lua, all math is floating point. We need to coerce the result of a
division into a integer with the `{get,set}_height` and
`{get,set}_width` window_spec functional tests.
2014-11-25 06:11:43 -05:00
Thiago de Arruda
aa22612112
test: Add gdbserver support on helpers.lua
...
The $GDB env var can be set to run tests under gdbserver. If $VALGRIND is also
set, it will add the --vgdb=yes command-line option to valgrind instead of
starting gdbserver.
2014-11-23 08:56:43 -03:00