aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_edit.vim
Commit message (Collapse)AuthorAge
* test/old: partial port of patch 8.1.0711Jan Edmund Lazo2020-11-30
| | | | Patch 8.1.0711 is too difficult to merge in 1 commit.
* vim-patch:8.2.1910: reading past the end of the command lineJan Edmund Lazo2020-10-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Reading past the end of the command line. Solution: Check for NUL. (closes vim/vim#7204) https://github.com/vim/vim/commit/caf73dcfade0a435ea3f989285b43f07c40c9948 Cherry-pick undo_cmdmod() from patch 8.2.1137. N/A patches for version.c: vim-patch:8.1.2050: popup window test fails in some configurations Problem: Popup window test fails in some configurations. (James McCoy) Solution: Clear the command line. https://github.com/vim/vim/commit/7e0f462db594e3e2eee3a55531250a6afc9c0b92 vim-patch:8.2.0913: code for resetting v:register is duplicated Problem: Code for resetting v:register is duplicated. Solution: Add reset_reg_var(). https://github.com/vim/vim/commit/439c036ed062de1c87cc7e3fe050a9569fb12089 reset_reg_var() is not ported. Use set_reg_var(get_default_register_name()) instead. vim-patch:8.2.1913: GTK GUI: rounding for the cell height is too strict Problem: GTK GUI: rounding for the cell height is too strict. Solution: Round up above 15/16 of a pixel. (closes vim/vim#7203) https://github.com/vim/vim/commit/70cf45810cb9be5bd17074f7fb4ee238f2c4d57b vim-patch:8.2.1922: Win32: scrolling problems when part of window is off-screen Problem: Win32: scrolling doesn't work properly when part of window is off-screen. Solution: Fall back to GDI scrolling if part of the window is off-screen. Handle multi-monitor setup better. (Ken Takata, closes vim/vim#7219) https://github.com/vim/vim/commit/185577e47e5004a5d08a5405a02ab6a261078e42
* vim-patch:8.2.1874: can't do something just before leaving Insert modeJan Edmund Lazo2020-10-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Can't do something just before leaving Insert mode. Solution: Add the InsertLeavePre autocommand event. (closes vim/vim#7177) https://github.com/vim/vim/commit/b53e13a91ab2fc9d52bd044715daa84972f4ce47 N/A patches for version.c: vim-patch:8.1.1877: graduated features scattered Problem: Graduated features scattered. Solution: Put graduated and obsolete features together. https://github.com/vim/vim/commit/ffc0716af8e448ef8a2a3249edfd0260546933df vim-patch:8.2.1875: warning when building GTK gui Problem: Warning when building GTK gui. Solution: Add missing function parameter. https://github.com/vim/vim/commit/3da855c8e28140d9f02b1572e445f8d4f977cf64 vim-patch:8.2.1877: test for function list fails Problem: Test for function list fails. Solution: Move "obsolete" comments one line up. https://github.com/vim/vim/commit/b8f519e5382f9876ae7f8bc64d9814d07a8ef972 vim-patch:8.2.1878: GTK: error for redefining function Problem: GTK: error for redefining function. (Tony Mechelynck) Solution: Remove "gtk_" prefix from local functions and prepend "gui_" to global functions. https://github.com/vim/vim/commit/8a99e66b4f7616d9b0b9cefe742f82f9122087d5 vim-patch:8.2.1881: cannot build with GTK3 Problem: Cannot build with GTK3. Solution: Adjust form functions. https://github.com/vim/vim/commit/692d1a51e74fea2db3c7e9ae7c7c6c3a1a1945ee vim-patch:8.2.1883: compiler warnings when using Python Problem: Compiler warnings when using Python. Solution: Adjust PyCFunction to also have the second argument. Use "int" return type for some functions. Insert "(void *)" to get rid of the remaining warnings. https://github.com/vim/vim/commit/4ce5fe4c87820c7d22964d6e91d7b07e96640e6f
* vim-patch:8.2.1842: crash when USE_FNAME_CASE is defined and using :browseJan Edmund Lazo2020-10-14
| | | | | | | Problem: Crash when USE_FNAME_CASE is defined and using :browse. Solution: Don't use read-only memory for ".". (Yegappan Lakshmanan, closes vim/vim#7123) https://github.com/vim/vim/commit/21cbe175eece17fad21d7403b00422445b587138
* fileio: fix "is a directory" warning on Windowserw72020-10-06
| | | | | | The porting of vim/vim@c8fe645 by #13040 on Windows was incomplete. This fixes that and makes the "is a directory" warning appear properly on Windows as well.
* vim-patch:8.2.1793: not consistently giving the "is a directory" warningShougo Matsushita2020-10-06
| | | | | | | Problem: Not consistently giving the "is a directory" warning. Solution: Adjust check for illegal file name and directory. (Yasuhiro Matsumoto, closes vim/vim#7067) https://github.com/vim/vim/commit/c8fe645c198e2ca55c4e3446efbbdb9b995c63ce
* test/old: enable passing testsJan Edmund Lazo2020-09-26
| | | | | | | | | | | Some TODO tests are passing now. test_override('ALL', 1) clears previous overrides so it's safe to comment out and execute the test. Replace test_feedinput() with nvim_input(). Replace test_setmouse with nvim_input_mouse(). Note that test_setmouse is 1-based and nvim_input_mouse is 0-based.
* vim-patch:8.1.2263: 'noesckeys' test fails in GUIJan Edmund Lazo2020-09-19
| | | | | | | | Problem: 'noesckeys' test fails in GUI. Solution: Skip the test in the GUI. https://github.com/vim/vim/commit/215ba3b63698f3755b2c4de66fc728cc14a8a590 Cherry-pick "CheckNotGui" command from patch 8.1.1826.
* vim-patch:8.1.2261: with modifyOtherKeys set 'noesckeys' doesn't workJan Edmund Lazo2020-09-19
| | | | | | | Problem: With modifyOtherKeys set 'noesckeys' doesn't work. (James McCoy) Solution: Disable modifyOtherKeys while in Insert mode when 'noesckeys' is set. (closes vim/vim#5180) https://github.com/vim/vim/commit/177c9f2f06b048f4c1e154d29423edf65b128f8c
* vim-patch:8.2.0649: undo problem whn an InsertLeave autocommand resets undoJan Edmund Lazo2020-05-03
| | | | | | | Problem: Undo problem whn an InsertLeave autocommand resets undo. (Kutsan Kaplan) Solution: Do not create a new undo block when leaving Insert mode. https://github.com/vim/vim/commit/db93495d276642f63f80471fbcb900b9aa1e9e42
* vim-patch:8.1.1988: :startinsert! does not work the same way as "A"Jan Edmund Lazo2019-09-06
| | | | | | Problem: :startinsert! does not work the same way as "A". Solution: Use the same code to move the cursor. (closes vim/vim#4896) https://github.com/vim/vim/commit/8d3b51084a5bdcd2ee9e31bc03cba0d16c43d428
* vim-patch:8.1.0037: cannot easily append lines to another bufferJan Edmund Lazo2019-08-23
| | | | | | Problem: Cannot easily append lines to another buffer. Solution: Add appendbufline(). https://github.com/vim/vim/commit/ca851593a660f08aba5c134f90c238d4a3e983e6
* vim-patch:8.1.0811: too many #ifdefsDaniel Hahler2019-08-22
| | | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, the final chapter. https://github.com/vim/vim/commit/30276f2beb248557c6b33cd5418bca8b7084b0a5
* vim-patch:8.0.1482: using feedkeys() does not work to test completionJan Edmund Lazo2019-06-24
| | | | | | | | Problem: Using feedkeys() does not work to test Insert mode completion. (Lifepillar) Solution: Do not check for typed keys when executing :normal or feedkeys(). Fix thesaurus completion not working when 'complete' is empty. https://github.com/vim/vim/commit/02ae9b4a93deea4993d7abe20485f91f1cce5e36
* vim-patch:8.1.1348: running tests may cause the window to moveJan Edmund Lazo2019-05-18
| | | | | | | Problem: Running tests may cause the window to move. Solution: Correct the reported window position for the offset with the position after ":winpos". Works around an xterm bug. https://github.com/vim/vim/commit/f8191c5f07c650b75b85c5a5b3d000fd5cae1643
* vim-patch:8.1.1214: old style tests #9948Jan Edmund Lazo2019-04-27
| | | | | | Problem: Old style tests. Solution: Move tests from test14 to new style test files. (Yegappan Lakshmanan, closes vim/vim#4308) https://github.com/vim/vim/commit/c6b37db1ba704455daa8f9e78bc1c2492fb81f40
* vim-patch:8.1.1011: indent from autoindent not removed #9742Jan Edmund Lazo2019-03-17
| | | | | Problem: Indent from autoindent not removed from blank line. (Daniel Hahler) Solution: Do not reset did_ai when text follows. (closes vim/vim#4119) https://github.com/vim/vim/commit/2ba4238818ca5ea52334de3037ef3729584cebf5
* vim-patch:8.1.0504: when CTRL-C is mapped it triggers InsertLeave (#9192)Jan Edmund Lazo2018-11-03
| | | | | Problem: When CTRL-C is mapped it triggers InsertLeave. Solution: Make CTRL-C behave the same way when typed or used in a mapping. https://github.com/vim/vim/commit/4dbc2627641a6b950c30c31cbf7b7e6c36da1927
* vim-patch:8.1.0219: expanding ## fails to escape backtickJan Edmund Lazo2018-09-11
| | | | | | Problem: Expanding ## fails to escape backtick. Solution: Escape a backtick in a file name. (closes vim/vim#3257) https://github.com/vim/vim/commit/2c8c681bfcd5138a0ec8ce018216dc2dc69a11a0
* vim-patch:8.1.0034: cursor not restored with ":edit #"Jan Edmund Lazo2018-09-11
| | | | | | | Problem: Cursor not restored with ":edit #". Solution: Don't assume autocommands moved the cursor when it was moved to the first non-blank. https://github.com/vim/vim/commit/adb8fbec4f4059d214fe6acf2485ffd35e803450
* vim-patch:8.0.1154: 'indentkeys' does not work properly (#8980)Jan Edmund Lazo2018-09-11
| | | | | Problem: 'indentkeys' does not work properly. (Gary Johnson) Solution: Get the cursor line again. (Christian Brabandt, closes vim/vim#2151) https://github.com/vim/vim/commit/1b38344e00af65df12946fffda7f3201621c35ef
* vim-patch:8.0.0545: edit test may fail on some systemsckelsel2018-06-16
| | | | | | Problem: Edit test may fail on some systems. Solution: If creating a directory with a very long path fails, bail out. https://github.com/vim/vim/commit/15ecbd6f3d39ff04862999a577962ef9369a9e53
* vim-patch:8.0.0543: test_edit causes older xfce4-terminal to closeckelsel2018-06-16
| | | | | | | Problem: Test_edit causes older xfce4-terminal to close. (Dominique Pelle) Solution: Reduce number of columns to 2000. Try to restore the window position. https://github.com/vim/vim/commit/ba6ec182973af726ce9b7b7eb3753fc3a7ae7d1b
* vim-patch:8.0.0532: test with long directory name fails on Macckelsel2018-06-16
| | | | | | Problem: Test with long directory name fails on Mac. Solution: Skip the test on Mac systems. https://github.com/vim/vim/commit/c77d6757471fa207520586bbdbc1b30af84cf5c8
* vim-patch:8.0.0531: test with long directory name fails on non-unix systemsckelsel2018-06-16
| | | | | | Problem: Test with long directory name fails on non-unix systems. Solution: Skip the test on non-unix systems. https://github.com/vim/vim/commit/9b81079ddd839a666682f6bdbc24890bf4d1a42c
* vim-patch:8.0.0530: buffer overflow when 'columns' is very bigckelsel2018-06-16
| | | | | | | Problem: Buffer overflow when 'columns' is very big. (Nikolai Pavlov) Solution: Correctly compute where to truncate. Fix translation. (closes vim/vim#1600) https://github.com/vim/vim/commit/658a3a2caf5852d071b6b1be92d9d6614a6208dc
* vim-patch:8.0.1205: it is possible to unload a changed bufferJustin M. Keyes2018-02-11
| | | | | | | Problem: Using "1q" it is possible to unload a changed buffer. (Rick Howe) Solution: Check the right window for changes. https://github.com/vim/vim/commit/ff930cad8a9100eeb04256aab1a14de993c1d7e9
* vim-patch:8.0.1226: edit and popup tests failingJustin M. Keyes2018-02-11
| | | | | | | Problem: Edit and popup tests failing. Solution: Make the tests pass. https://github.com/vim/vim/commit/2a45d64d0a7ab28d77eee277244e76dbbf8c2db8
* vim-patch:8.0.1200: tests switch the bell off twiceJustin M. Keyes2018-02-11
| | | | | | | Problem: Tests switch the bell off twice. Solution: Don't set 'belloff' in individual tests. (Christian Brabandt) https://github.com/vim/vim/commit/67418d97b457d2e27fe342472d3c9fd342ffc47f
* test: port Test_edit_08() to Lua testJustin M. Keyes2018-02-11
| | | | | | | Test_edit_08() depends on special-case handling in has_compl_option() and redrawing() which are in Vim but are not wanted in Nvim. Using a Lua test instead of depending on workarounds in the core to make the VimL test work.
* vim-patch:8.0.0472: when a test fails another test may also failJustin M. Keyes2018-02-11
| | | | | | | Problem: When a test fails and test.log is created, Test_edit_CTRL_I matches it instead of test1.in. Solution: Match with runtest.vim instead. https://github.com/vim/vim/commit/c537947100d4a73754ad4b4c9228c6c439655e5d
* vim-patch:8.0.0440: not enough test coverage in Insert modeJustin M. Keyes2018-02-11
[Nvim note: test_override() omitted] Problem: Not enough test coverage in Insert mode. Solution: Add lots of tests. Add test_override(). (Christian Brabandt, closes vim/vim#1521) https://github.com/vim/vim/commit/eb992cb90fd79c77ad2743459ac898e6ac3de939