Justin M. Keyes
8eeda7169a
terminal: less babysitting of mapped_ctrl_c
...
process_interrupts() checks get_real_state() so we can avoid some
housekeeping of mapped_ctrl_c in terminal-mode.
2016-01-13 02:40:57 -05:00
Shougo Matsushita
3dfbeabf35
vim-patch:7.4.569/573
...
vim-patch:7.4.569
vim-patch:7.4.573
Helped-by: @glts https://github.com/neovim/neovim/pull/2621
Problem: Having CTRL-C interrupt or not does not check the mode of the
mapping. (Ingo Karkat)
Solution: Use a bitmask with the map mode. (Christian Brabandt)
651863c94a
Problem: Mapping CTRL-C in Visual mode doesn't work. (Ingo Karkat)
Solution: Call get_real_state() instead of using State directly.
5000869712
2016-01-13 01:56:36 -05:00
Justin M. Keyes
c6e481cba5
portability: use portable format specifier
2016-01-10 01:34:49 -05:00
watiko
59b04d856b
tests: Make helper.source() return tempname.
2016-01-10 10:44:57 +09:00
watiko
feed81f45f
tests: Fix OSX's tempname issue.
2016-01-10 10:44:57 +09:00
watiko
d37dc0b314
tests: Rename 100_undo_level to 100_lispwords.
2016-01-10 10:44:57 +09:00
watiko
9c5ab23ef2
tests: Migrate legacy test undolevels.
2016-01-10 10:44:57 +09:00
watiko
d8e07deff6
tests: Migrate legacy test assert.
2016-01-10 10:44:57 +09:00
Marco Hinz
376b973a0a
Tests: fix according to lualint
2015-12-20 22:41:40 +01:00
Johan Klokkhammer Helsing
3b472e55b3
vim-patch:7.4.803
...
Problem: C indent does not support C11 raw strings. (Mark Lodato)
Solution: Do not change indent inside the raw string.
f7bb86dc59
2015-12-13 13:06:48 +01:00
Johan Klokkhammer Helsing
123361f187
vim-patch:7.4.670
...
Problem: Using 'cindent' for Javascript is less than perfect.
Solution: Improve indenting of continuation lines. (Hirohito Higashi)
dcefba9934
2015-12-13 11:55:37 +01:00
Justin M. Keyes
1b6e7f9e39
test: fixeol_spec: setup/teardown
...
Without this cleanup, test will fail if run multiple times.
2015-12-13 00:21:11 -05:00
Justin M. Keyes
aca51f3d93
Merge #3443 'vim-patch:7.4.{785,795,898}'
2015-12-13 00:09:07 -05:00
watiko
a3a8df8359
tests: Improve legacy autocmd_option.
...
* Compare tables instead of strings
* Add neovim specific test
2015-12-12 03:34:17 +09:00
watiko
8c00c34b91
tests: Keep each autocmd_option's test in isolation.
2015-11-28 20:15:28 +09:00
watiko
d9c0293824
tests: Improve legacy test autocmd_option.
2015-11-28 17:22:53 +09:00
watiko
21956adb6e
tests: Migrate legacy test autocmd_option.
2015-11-28 17:22:53 +09:00
Marco Hinz
d9fbc1865b
test/functional: clean up according to luacheck (part 2)
2015-11-23 13:57:21 +01:00
Marco Hinz
4a69e55f39
test/functional: clean up according to luacheck (part 1)
2015-11-23 13:57:21 +01:00
Johan Klokkhammer Helsing
b1d7b5294a
Convert legacy test for fixeol to lua test.
2015-11-22 20:03:41 +01:00
Justin M. Keyes
0f9dea2a0e
vim-patch:7.4.849
...
Problem: Moving the cursor in Insert mode starts new undo sequence.
Solution: Add CTRL-G U to keep the undo sequence for the following
cursor movement command. (Christian Brabandt)
8b5f65a527
Closes #3492
2015-10-26 02:23:59 -04:00
ZyX
6b17d35ff1
functests: Use . for various folder defaults in tests
2015-10-23 15:56:51 +03:00
ZyX
b7732cceca
functests: Fix 078_swapfile_recover test
2015-10-23 14:54:11 +03:00
ZyX
8663983cc4
Deprecate &viminfo and :[rw]v, add &shada and :[rw]sh
2015-10-08 22:00:07 +03:00
ZyX
9cf9c4a586
Replace references to viminfo in various places
2015-10-08 22:00:06 +03:00
ZyX
0be94d1e5a
functests: Do not use user viminfo file
2015-09-30 10:09:27 +03:00
Björn Linse
ffff2c9c47
encoding: Update handling of encoding in tests
...
Always run tests with encoding=utf-8, regardless of user locale
Don't set &encoding after startup in tests
Helped-By: Michael Reed <m.reed@mykolab.com >
2015-09-08 10:54:31 +02:00
Björn Linse
2b6d1546ec
test59: Store all text as utf-8 and convert when needed
2015-08-26 10:31:26 +02:00
Björn Linse
f666b2cb12
test59: Make "syntax off" explicit, as default may change with #2675
...
Helped-By: Felipe Morales <hel.sheep@gmail.com >
2015-08-26 10:31:02 +02:00
Björn Linse
d4fae57a4c
test59: Fixup incorrectly encoded utf-8
2015-08-26 10:30:55 +02:00
Lucas Hoffmann
a412e72a2f
test59: Split tests into 1-1, etc
...
Helped-By: Björn Linse <bjorn.linse@gmail.com >
Fixed some output issues
2015-08-26 10:30:48 +02:00
Lucas Hoffmann
c7d58e7a56
test59: Turn the VimL test function into a lua function.
...
Helped-By: Björn Linse <bjorn.linse@gmail.com >
`spelldump | quit` must be in a function
2015-08-26 10:30:44 +02:00
Lucas Hoffmann
f3c67a617e
test59: Write spell files from lua and use cp to get the right files in place
...
Use teardown to remove these temporary files
2015-08-26 10:30:44 +02:00
Lucas Hoffmann
ffe88f0d52
test59: Save source file in utf8, this will mess up a lot of characters.
2015-08-26 10:30:34 +02:00
Lucas Hoffmann
144b4954f7
test59: Turn function definition into source() call.
2015-08-26 10:30:30 +02:00
Lucas Hoffmann
e60e46596a
test59: Inital clean up.
...
Fix some feed() calls and string delimiters
Fix trimming of buffer before final expect().
2015-08-26 10:30:25 +02:00
Lucas Hoffmann
0a495d0be8
tests: Migrate legacy test 59.
2015-08-26 10:30:22 +02:00
Felipe Morales
be29de1fa2
defaults: set 'listchars' to "tab:> ,trail:-,nbsp:+". #2872
...
Re: https://github.com/neovim/neovim/issues/2676
2015-08-22 13:48:48 -04:00
Justin M. Keyes
5c1dc0fbe7
test: fix pending() invocations
...
AFAICT busted does not report pending() invocations without the 2nd
argument.
2015-08-09 22:33:28 -04:00
Marco Hinz
990c0350ab
vim-patch:7.4.773 #3066
...
Problem: 'langmap' is used in command-line mode when checking for mappings.
Solution: Do not use 'langmap' in command-line mode. (Larry Velazquez)
Original patch:
https://code.google.com/p/vim/source/detail?r=5b1eefbf9a532f32a66fa13abbd671488aaafd5c
2015-08-09 21:12:11 -04:00
Lucas Hoffmann
6571c84d54
tests: Migrate legacy test 80. #2989
...
The test is also split in several blocks and heavily modernized. This was
done to prevent the following quoting and escaping problems during migration:
- the vim command `put =...` treats double quotes as the start of a comment so
they have to be escaped with a backslash
- when inserting control characters on the command line they have to be
escaped with <C-V>
The parts one and two of the test are functional identical so they are wrapped
in a local function. The only difference was which letters where used to test
the same feature.
Part six did test a flag in 'cpoptions' that has been removed in neovim. It
has therefore been removed as well.
Reviewed-by: Michael Reed <Pyrohh@users.noreply.github.com >
2015-07-21 19:56:15 -04:00
Lucas Hoffmann
42d38b363c
tests: Split migrated test 57.
2015-07-19 04:06:45 +02:00
Lucas Hoffmann
1b2eb306f7
tests: Migrate legacy test 57.
2015-07-19 04:06:45 +02:00
Lucas Hoffmann
d88c93acf3
tests: Style improvements and Makefile fix for migrated test 60. #2975
2015-07-16 20:31:20 -04:00
Lucas Hoffmann
c51d0e49a9
tests: Modernize migrated legacy test 62.
...
- use eval() and eq() in many places instead of writing to the buffer
- remove has('autocmd') checks and use corresponding code unconditionally as
neovim always has the autocmd feature
- split the test into several it() blocks
Helped-By: Scott Prager <splinterofchaos@gmail.com >
Helped-By: Michael Reed <m.reed@mykolab.com >
2015-07-11 00:55:16 +02:00
Lucas Hoffmann
98c022c329
tests: Migrate legacy test 62.
2015-07-11 00:47:49 +02:00
Lucas Hoffmann
8f4e3a68a8
tests: Use new write_file() function in tests.
2015-06-30 18:06:06 +02:00
Justin M. Keyes
20a57c497b
tests: 061_undo_tree_spec: minor edits
2015-06-22 22:56:16 -04:00
Lucas Hoffmann
c411fb6cda
tests: Repeat a flaky part of the migrated test 61.
...
This is the part of the test that relies on wall clock time and sometimes
fails if the system is under load. The test is repeated up to three times
before a failure is reported to the user.
2015-06-22 17:05:10 +02:00
Lucas Hoffmann
1c7372361f
tests: Split test 61 into several it() blocks.
2015-06-22 12:15:51 +02:00