Bram Moolenaar [Tue, 12 Jun 2018 20:05:14 +0000 (22:05 +0200)]
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)
Bram Moolenaar [Tue, 12 Jun 2018 19:35:40 +0000 (21:35 +0200)]
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)
Bram Moolenaar [Tue, 12 Jun 2018 14:49:30 +0000 (16:49 +0200)]
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)
Bram Moolenaar [Tue, 12 Jun 2018 10:39:41 +0000 (12:39 +0200)]
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)
Bram Moolenaar [Sun, 10 Jun 2018 11:55:55 +0000 (13:55 +0200)]
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.
Bram Moolenaar [Wed, 6 Jun 2018 16:02:39 +0000 (18:02 +0200)]
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.
Bram Moolenaar [Wed, 6 Jun 2018 07:11:12 +0000 (09:11 +0200)]
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.
Bram Moolenaar [Tue, 22 May 2018 18:35:17 +0000 (20:35 +0200)]
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.
Bram Moolenaar [Tue, 22 May 2018 16:31:35 +0000 (18:31 +0200)]
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.
Bram Moolenaar [Mon, 21 May 2018 16:48:12 +0000 (18:48 +0200)]
patch 8.1.0015: cursor color wrong when closing a terminal window
Problem: Cursor color wrong when closing a terminal window, ending up in
another terminal window. (Dominique Pelle)
Solution: Bail out of terminal_loop() when the buffer changes.
(closes #2942)
Bram Moolenaar [Tue, 15 May 2018 21:53:26 +0000 (23:53 +0200)]
patch 8.0.1848: 'termwinscroll' does not work properly
Problem: 'termwinscroll' does not work properly. (Dominique Pelle)
Solution: Subtract removed scrollback from the scrollback count. Add a test
for 'termwinscroll'. (closes #2909)
Bram Moolenaar [Tue, 15 May 2018 20:31:18 +0000 (22:31 +0200)]
patch 8.0.1846: Python interface is incompatible with lldb
Problem: Python interface is incompatible with lldb.
Solution: For OutputType set the base to be PyFile_Type. (Boxu Zhang)
Partly disabled to avoid a crash.
Problem: Superfluous quickfix code, missing examples.
Solution: Remove unneeded code. Add a few examples. Add a bit more
testing. (Yegappan Lakshmanan, closes #2916)
Bram Moolenaar [Sun, 13 May 2018 17:06:12 +0000 (19:06 +0200)]
patch 8.0.1838: cursor in wrong pos when switching to Terminal-Normal mode
Problem: Cursor in wrong position when switching to Terminal-Normal mode.
(Dominique Pelle)
Solution: Move to the end of the line if coladvance() fails. Do not take a
snapshot a second time.
Bram Moolenaar [Sun, 13 May 2018 16:05:33 +0000 (18:05 +0200)]
patch 8.0.1836: buffer-local window options may not be recent
Problem: Buffer-local window options may not be recent if the buffer is
still open in another window.
Solution: Copy the options from the window instead of the outdated window
options. (Bjorn Linse, closes #2336)
Bram Moolenaar [Sun, 13 May 2018 13:29:04 +0000 (15:29 +0200)]
patch 8.0.1831: sometimes the quickfix title is incorrectly prefixed with ':'
Problem: Sometimes the quickfix title is incorrectly prefixed with ':'.
Solution: Prepend the colon in another way. (Yegappan Lakshmanan, closes
#2905)
Bram Moolenaar [Sat, 12 May 2018 18:36:24 +0000 (20:36 +0200)]
patch 8.0.1821: cursor in terminal window moves when pressing CTRL-W
Problem: Cursor in terminal window moves when pressing CTRL-W. (Dominique
Pelle)
Solution: Do not more the cursor or redraw when not in Terminal-Normal mode.
(closes #2904)
Bram Moolenaar [Sat, 12 May 2018 15:04:12 +0000 (17:04 +0200)]
patch 8.0.1819: swap file warning for file with non-existing directory
Problem: Swap file warning for a file in a non-existing directory, if there
is another with the same file name. (Juergen Weigert)
Solution: When expanding the file name fails compare the file names.
Bram Moolenaar [Sat, 12 May 2018 13:38:26 +0000 (15:38 +0200)]
patch 8.0.1817: a timer may change v:count unexpectedly
Problem: A timer may change v:count unexpectedly.
Solution: Save and restore v:count and similar variables when a timer
callback is invoked. (closes #2897)
Bram Moolenaar [Thu, 10 May 2018 16:05:56 +0000 (18:05 +0200)]
patch 8.0.1810: buffer of a terminal only updated in Terminal-Normal mode
Problem: Buffer of a terminal only updated in Terminal-Normal mode.
Solution: Copy the terminal window content to the buffer when in
Terminal-Job mode.