Justin M. Keyes
d0689eb0b2
'inccommand': disable 'cursorline', 'spell' in preview
2016-11-08 21:21:43 +01:00
Justin M. Keyes
e31f9007e4
'inccommand': preserve b:changedtick
2016-11-08 21:21:00 +01:00
Justin M. Keyes
c04ffe866d
'inccommand': rework
...
- Eliminate/isolate static/global variables
- Remove special-case parameter from buflist_new()
- Remove special-case ECMD_RESERVED_BUFNR
- To determine when u_undo_and_forget() should be done, check
b_changedtick instead of a heuristic.
- use mb_string2cells() instead of strlen() to measure the :sub patterns
- call ml_close() before buf_clear_file(). Avoids leaks caught by ASan.
Original patch by:
Robin Elrharbi-Fleury (Robinhola)
Audrey Rayé (Adrey06)
Philémon Hullot (DesbyP)
Aymeric Collange (aym7)
Clément Guyomard (Clement0)
2016-11-08 21:20:08 +01:00
KillTheMule
561c1e39e0
Tests for incsubstitution feature
2016-10-30 10:52:05 +01:00
Justin M. Keyes
dc6cc4787c
api: Establish API naming convention. ( #5344 )
...
old name: new name:
--------------------------------------------------
nvim_name_to_color nvim_get_color_by_name
nvim_get_current_buffer nvim_get_current_buf
nvim_get_current_window nvim_get_current_win
nvim_get_buffers nvim_list_bufs
nvim_get_tabpages nvim_list_tabpages
nvim_get_windows nvim_list_wins
nvim_set_current_buffer nvim_set_current_buf
nvim_set_current_window nvim_set_current_win
nvim_change_directory nvim_set_current_dir
nvim_tabpage_get_window nvim_tabpage_get_win
nvim_tabpage_get_windows nvim_tabpage_list_wins
nvim_win_get_buffer nvim_win_get_buf
nvim_report_error nvim_err_writeln
Helped-by: Björn Linse <bjorn.linse@gmail.com >
Helped-by: ZyX <kp-pav@yandex.ru >
Helped-by: James McCoy <jamessan@jamessan.com >
2016-09-17 06:30:36 +02:00
James McCoy
c28fb221ba
Restore output_spec assertion dropped in f332eba
2016-09-14 20:59:09 -04:00
James McCoy
df99e43ba4
tests/ui: Stop the terminal job after testing
...
When running the tests in a contained environment, the lingering
terminal processes prevent the unmounting of the filesystems in the
contained environment.
2016-09-14 20:56:47 -04:00
Justin M. Keyes
ac819b8994
CI: Travis macOS: Skip tab left-drag tests.
...
These tests fail on master, so it's not a regression. Changes in #4874
(parent commit) seem to work (and pass most CI), so skipping these tests
is better than blocking the changes.
2016-09-12 03:42:51 +02:00
sach1t
c6f5d6b7e0
normal.c: Restore vim-like tab dragging. #4874
...
Closes #4663
References #3310
2016-09-12 03:11:26 +02:00
Björn Linse
0ade1bb706
Merge pull request #5225 from equalsraf/windows-functionaltests
...
Enable functional tests in Appveyor
2016-08-31 21:39:42 +02:00
Björn Linse
c41bacc67c
api/ui: add tests for popupmenu_external events
...
update screen.lua to use new style nvim_ui_attach
2016-08-29 10:17:31 +02:00
Rui Abreu Ferreira
39c628d031
Mark some functional tests as pending in Windows
2016-08-26 08:21:41 +01:00
Tommy Allen
605e74327a
highlight: Added QuickFixLine highlight group
...
- Links to Search by default
screen.c: Combine CursorLine with QuickFixLine
- HLF_QFL takes priority over HLF_CUL
docs: Updated to mention QuickFixLine
runtime: Added QuickFixLine to nvimHLGroup
tests: QuickFixLine highlight
2016-08-17 17:48:15 -04:00
Björn Linse
57ac9b0934
api: handle null string in buffer_add_highlight
2016-08-17 09:34:01 +02:00
Björn Linse
725074aafc
tests: add note to expect() message about snapshot_util()
2016-08-14 21:53:02 +02:00
Björn Linse
f332eba16c
tests: don't ignore highlights in terminal tests
2016-08-14 21:53:02 +02:00
Björn Linse
f282b8ecac
tests: don't ignore highlights in various tests
2016-08-14 21:53:02 +02:00
Björn Linse
0a882b4818
tests: don't ignore highlights in screen_basic_spec
2016-08-14 21:53:02 +02:00
Björn Linse
82b434dd51
tests: don't ignore highlights in mouse_spec
2016-08-14 21:53:02 +02:00
Björn Linse
a63f770bcb
tests: don't ignore highlights in syntax_conceal_spec
2016-08-14 21:53:02 +02:00
Björn Linse
cc657951a9
tests: don't ignore highlights in highlight_spec
2016-08-14 21:53:02 +02:00
Björn Linse
7b29fdd200
tests: don't ignore highlights in searchhl_spec
2016-08-14 21:53:02 +02:00
Björn Linse
35b47890dd
tests: don't ignore highlights in bufhl_spec
2016-08-14 21:53:02 +02:00
Björn Linse
9c4a94f964
tests: remove deprecated hl_colors
2016-08-14 21:53:02 +02:00
Justin M. Keyes
d69194ca8c
test: mouse_spec
...
- Use the default buffer text provided by before_each (avoids extra steps and
makes the tests more consistent with each other)
- Indent
- Adjust help doc
2016-08-07 23:50:40 -04:00
sach1t
08a5f91481
test: Add tests for double, triple, and quadruple click
2016-08-07 13:21:03 -04:00
Tommy Allen
1f7304b846
mouse.c: Adjust clicked column if chars are concealed ( #5087 )
...
syntax.c: Added syn_get_concealed_id()
tests: Added tests for mouse clicks on concealed text.
2016-07-28 14:14:53 -04:00
Justin M. Keyes
ed3b3aa9cd
test: output_spec
...
Reference: https://github.com/neovim/neovim/issues/3772#issuecomment-162334005
2016-07-14 23:28:23 -04:00
Justin M. Keyes
abeb2f020f
test/highlight_spec: Test "gui" arg of synIDattr().
...
Also use less "regular" values for cterm colors.
2016-06-18 13:07:59 -04:00
ZyX
ff470bb853
functests: Check logs in lua code
...
It is otherwise impossible to determine which test failed sanitizer/valgrind
check. test/functional/helpers.lua module return was changed so that tests which
do not provide after_each function to get new check will automatically fail.
2016-06-10 21:50:49 +03:00
Björn Linse
5cc87d4dab
cmdline: Redraw the cmdline after processing events
...
vim-patch:7.4.1603
TODO(bfredl): if we allow events in HITRETURN and ASKMORE states,
we need to add the necessary redraws as well.
2016-05-24 22:11:37 +02:00
AdnoC
582fb03f51
test/syntax: foo=NONE clears hi group
2016-05-21 01:19:39 -04:00
Yichao Zhou
723497f030
test: listchars
2016-05-20 04:04:49 -04:00
Yichao Zhou
f598bb7b3c
test: cursorline, listchars
2016-05-20 04:04:48 -04:00
Yichao Zhou
9dc08dd692
test: Update to meet new expectations.
2016-05-20 03:54:21 -04:00
Justin M. Keyes
74f6460181
Merge #4633 : support "special" highlight (undercurl)
...
Closes #2040
Closes #3370
2016-05-19 22:20:52 -04:00
AdnoC
e5eea7fa06
test: Screen also checks 'special' when testing attribute equality
2016-05-17 16:36:41 -04:00
AdnoC
724fc88597
test: Edit the special color test
2016-05-17 16:36:38 -04:00
KillTheMule
a5ac389e5c
test: Add a test for the new guisp highlighting feature.
...
Screen.lua needed a little cosmetical adjustment to print out the color nicely.
2016-05-17 16:32:07 -04:00
AdnoC
f6a82c1d4f
test: Fix tests failing
2016-05-17 16:31:56 -04:00
AdnoC
130a1a6bb2
test/syntax: Add testing for linking to cleared highlight groups
2016-05-10 16:08:57 -04:00
Justin M. Keyes
22ea7be77b
Merge pull request #4540 from KillTheMule/vim-patch-1236
...
vim-patch: 7.4.1236
2016-05-04 22:03:37 -04:00
KillTheMule
11f41a3c8c
Add test for vim-patch 7.4.672
2016-05-02 21:10:53 +02:00
pips.linux
ee4d1f2cce
vim-patch:7.4.1236
...
Problem: When "syntax manual" was used switching between buffers removes
the highlighting.
Solution: Set the syntax option without changing the value. (Anton
Lindqvist)
885f24fbca
Patch applied cleanly to the nvim sources except for version.c.
2016-04-28 21:11:03 +02:00
bambu
5a5ef1c222
mouse: Implement horizontal scroll. #3450
...
- Code from Vim source.
- Removed the check for 'guioptions'
- mouse_spec.lua: test <ScrollWheelLeft> and <ScrollWheelRight>
- Move horizontal scroll logic to mouse.c
- Remove 'gui_' from the function names
- Renamed variables to be more specific (as opposed to generic p, w).
- Marked some functions as `static`
2016-04-25 01:31:44 -04:00
Thiago de Arruda
c18d5917e3
Update lua client to 0.0.1-24
...
The new version of the lua client uses libmpack as a backend, and some test
scripts had to be updated to reflect that.
2016-04-13 09:21:32 -03:00
Marco Hinz
88da85a3cd
Tests: fix according to lualint
2016-02-29 13:48:59 +01:00
ZyX
0409cfded5
functests: Improve screen:expect error reporting
2016-02-28 08:15:52 +03:00
Marco Hinz
9a3b7fa906
Tests: fix according to lualint
2016-02-24 01:42:38 +01:00
Björn Linse
06b9d2a6f2
bufhl: add tests for adding and clearing highlights
2016-02-23 21:29:01 +01:00