0
0
mirror of https://github.com/vim/vim.git synced 2025-08-24 19:45:50 -04:00

11036 Commits

Author SHA1 Message Date
Bram Moolenaar
942b4541a2 patch 8.1.0064: typing CTRL-W in a prompt buffer shows mode "-- --"
Problem:    Typing CTRL-W in a prompt buffer shows mode "-- --".
Solution:   Set restart_edit to 'A' and check for it.
v8.1.0064
2018-06-17 16:23:34 +02:00
Bram Moolenaar
d595a1910c patch 8.1.0063: Mac: NSStringPboardType is deprecated
Problem:    Mac: NSStringPboardType is deprecated.
Solution:   Use NSPasteboardTypeString. (Akshay Hegde, closes #3022)
v8.1.0063
2018-06-17 15:01:04 +02:00
Bram Moolenaar
491ac28d5f patch 8.1.0062: popup menu broken if a callback changes the window layout
Problem:    Popup menu broken if a callback changes the window layout. (Qiming
            Zhao)
Solution:   Recompute the popup menu position if needed.  Redraw the ruler
            even when the popup menu is displayed.
v8.1.0062
2018-06-17 14:47:55 +02:00
Bram Moolenaar
84a9308511 patch 8.1.0061: window title is wrong after resetting and setting 'title'
Problem:    Window title is wrong after resetting and setting 'title'.
Solution:   Move resetting the title into maketitle(). (Jason Franklin)
v8.1.0061
2018-06-16 22:58:15 +02:00
Bram Moolenaar
600323b4ef patch 8.1.0060: crash when autocommands delete the current buffer
Problem:    Crash when autocommands delete the current buffer. (Dominique
            Pelle)
Solution:   Check that autocommands don't change the buffer.
v8.1.0060
2018-06-16 22:16:47 +02:00
Bram Moolenaar
bc5020aa4d patch 8.1.0059: displayed digraph for "ga" wrong with 'encoding' "cp1251"
Problem:    Displayed digraph for "ga" wrong with 'encoding' "cp1251".
Solution:   Convert from 'encoding' to "utf-8" if needed. (closes #3015)
v8.1.0059
2018-06-16 17:25:22 +02:00
Bram Moolenaar
bfa4246768 patch 8.1.0058: display problem with margins and scrolling
Problem:    Display problem with margins and scrolling.
Solution:   Place the cursor in the right column. (Kouichi Iwamoto,
            closes #3016)
v8.1.0058
2018-06-16 16:20:52 +02:00
Bram Moolenaar
6ba3ec1bac patch 8.1.0057: popup menu displayed wrong when using autocmd
Problem:    Popup menu displayed wrong when using autocmd.
Solution:   Use aucmd_prepbuf().  Force updating status line if the popup menu
            is going to be redrawn anyway. (Christian Brabandt, closes #3009)
v8.1.0057
2018-06-16 15:32:38 +02:00
Bram Moolenaar
43dee181f5 patch 8.1.0056: crash when using :hardcopy with illegal byte
Problem:    Crash when using :hardcopy with illegal byte.
Solution:   Check for string_convert() returning NULL. (Dominique Pelle)
v8.1.0056
2018-06-16 14:44:11 +02:00
Bram Moolenaar
52d3aaeea4 patch 8.1.0055: complete test has wrong order of arguments
Problem:    Complete test has wrong order of arguments. Wrong type for
            sentinel variable.
Solution:   Swap arguments, use VAR_UNKNOWN. (Ozaki Kiichi)
v8.1.0055
2018-06-13 21:27:24 +02:00
Bram Moolenaar
5ecdf96422 patch 8.1.0054: compiler warning for using %ld for "long long"
Problem:    Compiler warning for using %ld for "long long".
Solution:   Add a type cast. (closes #3002)
v8.1.0054
2018-06-13 20:49:50 +02:00
Bram Moolenaar
ffa9684150 patch 8.1.0053: first argument of 'completefunc' has inconsistent type
Problem:    The first argument given to 'completefunc' can be Number or
            String, depending on the value.
Solution:   Avoid guessing the type of an argument, use typval_T in the
            callers of call_vim_function(). (Ozaki Kiichi, closes #2993)
v8.1.0053
2018-06-12 22:05:14 +02:00
Bram Moolenaar
83f4cbd973 patch 8.1.0052: when mapping to <Nop> times out the next mapping is skipped
Problem:    When a mapping to <Nop> times out the next mapping is skipped.
Solution:   Reset "timedout" when waiting for a character. (Christian
            Brabandt, closes #2921)
v8.1.0052
2018-06-12 21:35:40 +02:00
Bram Moolenaar
79c6b51e40 patch 8.1.0051: MS-Windows: missing #endif
Problem:    MS-Windows: missing #endif.
Solution:   Add the #endif.
v8.1.0051
2018-06-12 21:11:12 +02:00
Bram Moolenaar
493359eb3b patch 8.1.0050: $VIM_TERMINAL is also set when not in a terminal window
Problem:    $VIM_TERMINAL is also set when not in a terminal window.
Solution:   Pass a flag to indicate whether the job runs in a terminal.
v8.1.0050
2018-06-12 20:25:52 +02:00
Bram Moolenaar
d7a137fb0d patch 8.1.0049: shell cannot tell running in a terminal window
Problem:    Shell cannot tell running in a terminal window.
Solution:   Add the VIM_TERMINAL environment variable. (Christian Brabandt)
v8.1.0049
2018-06-12 18:05:24 +02:00
Bram Moolenaar
07ccf7ce7f patch 8.1.0048: vim_str2nr() does not handle numbers close to the maximum
Problem:    vim_str2nr() does not handle numbers close to the maximum.
Solution:   Check for overflow more precisely. (Ken Takata, closes #2746)
v8.1.0048
2018-06-12 17:25:36 +02:00
Bram Moolenaar
1983401088 patch 8.1.0047: no completion for :unlet $VAR
Problem:    No completion for :unlet $VAR.
Solution:   Add completion. (Jason Franklin)
v8.1.0047
2018-06-12 17:03:39 +02:00
Bram Moolenaar
1c3c10492a patch 8.1.0046: loading a session file fails if 'winheight' is big
Problem:    Loading a session file fails if 'winheight' is a big number.
Solution:   Set 'minwinheight' to zero at first.  Don't give an error when
            setting 'minwinheight' while 'winheight' is a big number.
            Fix using vertical splits. Fix setting 'minwinwidth'.
            (closes #2970)
v8.1.0046
2018-06-12 16:49:30 +02:00
Bram Moolenaar
ae0f30b761 patch 8.1.0045: popup test isn't run completely
Problem:    Popup test isn't run completely.
Solution:   Remove "finish".  Clean up function definitions.
v8.1.0045
2018-06-12 15:22:43 +02:00
Bram Moolenaar
8903676d3d patch 8.1.0044: if a test function exists Vim this may go unnoticed
Problem:    If a test function exists Vim this may go unnoticed.
Solution:   Check for a test funtion quitting Vim.  Fix tests that did exit
            Vim.
v8.1.0044
2018-06-12 14:58:39 +02:00
Bram Moolenaar
7580849df9 patch 8.1.0043: ++bad argument of :edit does not work properly
Problem:    ++bad argument of :edit does not work properly.
Solution:   Return FAIL from get_bad_opt() only when there is no valid
            argument. (Dominique Pelle, Christian Brabandt, closes #2966,
            closes #2947)
v8.1.0043
2018-06-12 12:39:41 +02:00
Bram Moolenaar
f98b845dd1 patch 8.1.0042: if omni completion opens a window Insert mode is stopped
Problem:    If omni completion opens a window Insert mode is stopped.
            (Hirohito Higashi)
Solution:   Only set stop_insert_mode in a prompt buffer window.
v8.1.0042
2018-06-10 14:39:52 +02:00
Bram Moolenaar
e950f9992b patch 8.1.0041: attribute "width" missing from python window attribute list
Problem:    Attribute "width" missing from python window attribute list.
Solution:   Add the item. (Ken Takata) Order the list like the items are used
            in the WindowAttr() function.
v8.1.0041
2018-06-10 13:55:55 +02:00
Bram Moolenaar
e31e256ba1 patch 8.1.0040: warnings from 64-bit compiler
Problem:    Warnings from 64-bit compiler.
Solution:   Add type casts. (Mike Williams)
v8.1.0040
2018-06-10 13:12:55 +02:00
Bram Moolenaar
d79a26219d patch 8.1.0039: cannot easily delete lines in another buffer
Problem:    Cannot easily delete lines in another buffer.
Solution:   Add deletebufline().
v8.1.0039
2018-06-07 18:17:46 +02:00
Bram Moolenaar
680c99b2ef patch 8.1.0038: popup test causes Vim to exit
Problem:    Popup test causes Vim to exit.
Solution:   Disable the broken part of the test for now.
v8.1.0038
2018-06-07 15:18:41 +02:00
Bram Moolenaar
ca851593a6 patch 8.1.0037: cannot easily append lines to another buffer
Problem:    Cannot easily append lines to another buffer.
Solution:   Add appendbufline().
v8.1.0037
2018-06-06 21:04:07 +02:00
Bram Moolenaar
891e1fd894 patch 8.1.0036: not restoring Insert mode if leaving prompt buffer with mouse
Problem:    Not restoring Insert mode if leaving a prompt buffer by using a
            mouse click.
Solution:   Set b_prompt_insert appropriately. Also correct cursor position
            when moving cursor to last line.
v8.1.0036
2018-06-06 18:02:39 +02:00
Bram Moolenaar
6d41c78e35 patch 8.1.0035: not easy to switch between prompt buffer and other windows
Problem:    Not easy to switch between prompt buffer and other windows.
Solution:   Accept CTRL-W commands in Insert mode.  Start and stop Insert mode
            as one would expect.
v8.1.0035
2018-06-06 09:11:12 +02:00
Bram Moolenaar
adb8fbec4f patch 8.1.0034: cursor not restored with ":edit #"
Problem:    Cursor not restored with ":edit #".
Solution:   Don't assume autocommands moved the cursor when it was moved to
            the first non-blank.
v8.1.0034
2018-06-04 20:34:23 +02:00
Bram Moolenaar
acb9effecc patch 8.1.0033: keys to stop Vim in terminal are wrong
Problem:    Keys to stop Vim in terminal are wrong. (Marius Gedminas)
Solution:   Move ":" to before CTRL-U.
v8.1.0033
2018-06-04 19:11:11 +02:00
Bram Moolenaar
6b810d92a9 patch 8.1.0032: BS in prompt buffer starts new line
Problem:    BS in prompt buffer starts new line.
Solution:   Do not allows BS over the prompt.  Make term_sendkeys() handle
            special keys. Add a test.
v8.1.0032
2018-06-04 17:28:44 +02:00
Bram Moolenaar
c8523e2e6c patch 8.1.0031: terminal test aucmd_on_close if flaky
Problem:    Terminal test aucmd_on_close if flaky.
Solution:   Wait a bit longer.
v8.1.0031
2018-06-03 18:22:02 +02:00
Bram Moolenaar
3339d3dad9 patch 8.1.0030: stoping Vim running in a terminal may not work
Problem:    Stoping Vim running in a terminal may not work.
Solution:   Instead of sending <Esc> send CTRL-O.
v8.1.0030
2018-06-03 17:10:40 +02:00
Bram Moolenaar
1580f755c9 patch 8.1.0029: terminal test fails on MS-Windows when "wc" exists
Problem:    Terminal test fails on MS-Windows when "wc" exists.
Solution:   Skip test with redirection on MS-Windows.
v8.1.0029
2018-06-03 15:26:36 +02:00
Bram Moolenaar
1149382d21 patch 8.1.0028: prompt buffer test fails on MS-Windows
Problem:    Prompt buffer test fails on MS-Windows.
Solution:   Disable the test for now. Remove stray assert.
v8.1.0028
2018-06-03 15:08:09 +02:00
Bram Moolenaar
f273245f64 patch 8.1.0027: difficult to make a plugin that feeds a line to a job
Problem:    Difficult to make a plugin that feeds a line to a job.
Solution:   Add the nitial code for the "prompt" buftype.
v8.1.0027
2018-06-03 14:47:35 +02:00
Bram Moolenaar
33c5e9fa7a patch 8.1.0026: terminal test fails with very tall terminal
Problem:    Terminal test fails with very tall terminal. (Tom)
Solution:   Fix the terminal window size in the test.
v8.1.0026
2018-05-26 18:58:51 +02:00
Bram Moolenaar
e5fa11186f patch 8.1.0025: no test for the undofile() function
Problem:    No test for the undofile() function.
Solution:   Add test. (Dominique Pelle, closes #2958)
v8.1.0025
2018-05-26 18:46:30 +02:00
Bram Moolenaar
6b69e5c646 patch 8.1.0024: % command not testded on #ifdef and comment
Problem:    % command not testded on #ifdef and comment.
Solution:   Add tests. (Dominique Pelle, closes #2956)
v8.1.0024
2018-05-26 18:39:32 +02:00
Bram Moolenaar
22c105640c patch 8.1.0023: gcc 8.1 warns for use of strncpy()
Problem:    gcc 8.1 warns for use of strncpy(). (John Marriott)
Solution:   Use mch_memmove() instead of STRNCPY().
v8.1.0023
2018-05-26 17:35:27 +02:00
Bram Moolenaar
833093bfb0 patch 8.1.0022: repeating put from expression register fails
Problem:    Repeating put from expression register fails.
Solution:   Re-evaluate the expression register. (Andy Massimino,
            closes #2945)
v8.1.0022
2018-05-23 21:53:52 +02:00
Bram Moolenaar
d315cf551f patch 8.1.0021: clang warns for undefined behavior
Problem:    Clang warns for undefined behavior.
Solution:   Move #ifdef outside of sprintf() call.(suggestion by Michael
            Jarvis, closes #2956)
v8.1.0021
2018-05-23 20:30:56 +02:00
Bram Moolenaar
0b0f0992d4 Update runtime files. 2018-05-22 21:41:30 +02:00
Bram Moolenaar
0b6d911e5d patch 8.1.0020: cannot tell whether a register is executing or recording
Problem:    Cannot tell whether a register is being used for executing or
            recording.
Solution:   Add reg_executing() and reg_recording(). (Hirohito Higashi,
            closes #2745)  Rename the global variables for consistency.  Store
            the register name in reg_executing.
v8.1.0020
2018-05-22 20:35:17 +02:00
Bram Moolenaar
b4518563c7 patch 8.1.0019: error when defining a Lambda with index of a function result
Problem:    Error when defining a Lambda with index of a function result.
Solution:   When not evaluating an expression and skipping a function call,
            set the return value to VAR_UNKNOWN.
v8.1.0019
2018-05-22 18:31:35 +02:00
Bram Moolenaar
bdb657924d patch 8.1.0018: using "gn" may select wrong text when wrapping
Problem:    Using "gn" may select wrong text when wrapping.
Solution:   Avoid wrapping when searching forward. (Christian Brabandt)
v8.1.0018
2018-05-22 17:50:42 +02:00
Bram Moolenaar
62fe66f251 patch 8.1.0017: shell command completion has duplicates
Problem:    Shell command completion has duplicates. (Yegappan Lakshmanan)
Solution:   Use a hash table to avoid duplicates. (Ozaki Kiichi, closes #539,
            closes #2733)
v8.1.0017
2018-05-22 16:58:47 +02:00
Bram Moolenaar
d45aa55d42 patch 8.1.0016: possible crash in term_wait()
Problem:    Possible crash in term_wait(). (Dominique Pelle)
Solution:   Check for a valid buffer after ui_delay(). (closes #2944)
v8.1.0016
2018-05-21 22:50:29 +02:00