Bram Moolenaar [Sat, 30 Jun 2018 16:28:03 +0000 (18:28 +0200)]
patch 8.1.0130: ":profdel func" does not work if func was called already
Problem: ":profdel func" does not work if func was called already.
(Dominique Pelle)
Solution: Reset uf_profiling and add a flag to indicate initialization was
done.
Bram Moolenaar [Sat, 30 Jun 2018 15:09:26 +0000 (17:09 +0200)]
patch 8.1.0129: still some xterm-like terminals get a stray "p"
Problem: Still some xterm-like terminals get a stray "p" on startup.
Solution: Consider all terminals that reply with a version smaller than 95
as not an xterm. (James McCoy)
Bram Moolenaar [Sat, 30 Jun 2018 14:27:02 +0000 (16:27 +0200)]
patch 8.1.0128: building with MinGW does not work out-of-the-box
Problem: Building with MinGW does not work out-of-the-box.
Solution: Add instructions for MSYS2. Set default WINVER. Add batch files
to set $PATH for MSYS2.
Bram Moolenaar [Thu, 28 Jun 2018 17:26:28 +0000 (19:26 +0200)]
patch 8.1.0125: virtual edit replace with multi-byte fails at end of line
Problem: Virtual edit replace with multi-byte fails at end of line. (Lukas
Werling)
Solution: use ins_char() to add the character. (Christian Brabandt,
closes #3114) Rename PCHAR() to PBYTE() to avoid mistakes like
this.
Bram Moolenaar [Thu, 28 Jun 2018 13:29:52 +0000 (15:29 +0200)]
patch 8.1.0123: MS-Windows: colors are wrong after setting 'notgc'
Problem: MS-Windows: colors are wrong after setting 'notgc'.
Solution: Only call control_console_color_rgb() for the win32 terminal.
(Nobuhiro Takasaki, closes #3107)
Bram Moolenaar [Thu, 28 Jun 2018 12:54:43 +0000 (14:54 +0200)]
patch 8.1.0122: translators don't always understand the maintainer message
Problem: Translators don't always understand the maintainer message.
Solution: Add a comment that ends up in the generated po file. (Christian
Brabandt, closes #3037)
Bram Moolenaar [Sun, 24 Jun 2018 16:04:50 +0000 (18:04 +0200)]
patch 8.1.0111: .po files do not use recommended names
Problem: .po files do not use recommended names.
Solution: Give a warning if the recommended name is not used. Accept the
recommended name for conversion. (Christian Brabandt, Ken Takata)
Bram Moolenaar [Sun, 24 Jun 2018 14:53:35 +0000 (16:53 +0200)]
patch 8.1.0110: file name not displayed with ":file"
Problem: File name not displayed with ":file" when 'F' is in 'shortmess'.
Solution: Always display the file name when there is no argument (Christian
Brabandt, closes #3070)
Bram Moolenaar [Sat, 23 Jun 2018 12:21:42 +0000 (14:21 +0200)]
patch 8.1.0098: segfault when pattern with \z() is very slow
Problem: Segfault when pattern with \z() is very slow.
Solution: Check for NULL regprog. Add "nfa_fail" to test_override() to be
able to test this. Fix that 'searchhl' resets called_emsg.
Bram Moolenaar [Wed, 20 Jun 2018 20:38:21 +0000 (22:38 +0200)]
patch 8.1.0091: MS-Windows: Cannot interrupt gdb when program is running
Problem: MS-Windows: Cannot interrupt gdb when program is running.
Solution: Add debugbreak() and use it in the terminal debugger.
Respect 'modified' in a prompt buffer.
Bram Moolenaar [Tue, 19 Jun 2018 18:08:14 +0000 (20:08 +0200)]
patch 8.1.0088: terminal test for stdout and stderr is a bit flaky
Problem: Terminal test for stdout and stderr is a bit flaky.
Solution: Wait for both stdout and stderr to have been processed. (Ozaki
Kiichi, closes #2991)
Bram Moolenaar [Tue, 19 Jun 2018 15:49:24 +0000 (17:49 +0200)]
patch 8.1.0082: in terminal window, typing : at more prompt, inserts ':'
Problem: In terminal window, typing : at more prompt, inserts ':' instead
of starting another Ex command.
Solution: Add skip_term_loop and set it when putting ':' in the typeahead
buffer.
Bram Moolenaar [Mon, 18 Jun 2018 20:15:50 +0000 (22:15 +0200)]
patch 8.1.0076: command getting cleared with CTRL-W : in a terminal window
Problem: Command getting cleared with CTRL-W : in a terminal window. (Jason
Franklin)
Solution: Call redraw_after_callback() when editing the command line.
Bram Moolenaar [Sun, 17 Jun 2018 19:34:11 +0000 (21:34 +0200)]
patch 8.1.0071: terminal debugger only works with the terminal feature
Problem: Terminal debugger only works with the terminal feature.
Solution: Make it also work with a prompt buffer. Makes it possible to use
on MS-Windows. Various other improvements. (closes #3012)
Bram Moolenaar [Sun, 17 Jun 2018 15:32:58 +0000 (17:32 +0200)]
patch 8.1.0066: nasty autocommand causes using freed memory
Problem: Nasty autocommand causes using freed memory. (Dominique Pelle)
Solution: Do not force executing autocommands if the value of 'syntax' or
'filetype' did not change.
Bram Moolenaar [Sun, 17 Jun 2018 12:47:55 +0000 (14:47 +0200)]
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.
Bram Moolenaar [Sat, 16 Jun 2018 13:32:38 +0000 (15:32 +0200)]
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)
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.