Bram Moolenaar [Fri, 11 Jan 2019 12:02:23 +0000 (13:02 +0100)]
patch 8.1.0716: get warning message when 'completefunc' returns nothing
Problem: Get warning message when 'completefunc' returns nothing.
Solution: Allow for returning v:none to suppress the warning message.
(Yasuhiro Matsumoto, closes #3789)
Bram Moolenaar [Wed, 9 Jan 2019 21:24:49 +0000 (22:24 +0100)]
patch 8.1.0710: when using timers may wait for job exit quite long
Problem: When using timers may wait for job exit quite long.
Solution: Return from ui_wait_for_chars_or_timer() when a job or channel
needs to be handled. (Ozaki Kiichi, closes #3783)
Bram Moolenaar [Wed, 9 Jan 2019 20:47:30 +0000 (21:47 +0100)]
patch 8.1.0709: windows are updated for every added/deleted sign
Problem: Windows are updated for every added/deleted sign.
Solution: Do not call update_debug_sign(). Only redraw when the line with
the sign is visible. (idea from neovim #9479)
Bram Moolenaar [Tue, 8 Jan 2019 21:02:56 +0000 (22:02 +0100)]
patch 8.1.0706: tabline is not always redrawn
Problem: Tabline is not always redrawn when something that is used in
'tabline' changes.
Solution: Add ":redrawtabline" so that a plugin can at least cause the
redraw when needed.
Bram Moolenaar [Mon, 7 Jan 2019 21:10:00 +0000 (22:10 +0100)]
patch 8.1.0702: ":sign place" only uses the current buffer
Problem: ":sign place" only uses the current buffer.
Solution: List signs for all buffers when there is no buffer argument.
Fix error message for invalid buffer name in sign_place().
(Yegappan Lakshmanan, closes #3774)
Bram Moolenaar [Mon, 7 Jan 2019 20:16:53 +0000 (21:16 +0100)]
patch 8.1.0701: sign message not translated and inconsistent spacing
Problem: Sign message not translated and inconsistent spacing.
Solution: Add _() for translation. Add a space. (Ken Takata) Also use
MSG_BUF_LEN instead of BUFSIZ.
Bram Moolenaar [Sun, 6 Jan 2019 16:25:29 +0000 (17:25 +0100)]
patch 8.1.0698: clearing the window is used too often
Problem: Clearing the window is used too often, causing the command line
to be cleared when opening a tab. (Miroslav Koškár)
Solution: Use NOT_VALID instead of CLEAR. (suggested by Jason Franklin,
closes #630) Also do this for a few other places where clearing
the screen isn't really needed.
Bram Moolenaar [Sun, 6 Jan 2019 15:24:01 +0000 (16:24 +0100)]
patch 8.1.0697: ":sign place" requires the buffer argument
Problem: ":sign place" requires the buffer argument.
Solution: Make the argument optional. Also update the help and clean up the
sign test. (Yegappan Lakshmanan, closes #3767)
Bram Moolenaar [Sun, 6 Jan 2019 14:29:57 +0000 (15:29 +0100)]
patch 8.1.0696: when test_edit fails 'insertmode' may not be reset
Problem: When test_edit fails 'insertmode' may not be reset and the next
test may get stuck. (James McCoy)
Solution: Always reset 'insertmode' after executing a test. Avoid that an
InsertCharPre autocommand or a 'complete' function can change the
state. (closes #3768)
Bram Moolenaar [Sun, 6 Jan 2019 11:54:55 +0000 (12:54 +0100)]
patch 8.1.0694: when using text props may free memory that is not allocated
Problem: When using text props may free memory that is not allocated.
(Andy Massimino)
Solution: Allocate the line when adjusting text props. (closes #3766)
Bram Moolenaar [Fri, 4 Jan 2019 23:02:57 +0000 (00:02 +0100)]
patch 8.1.0692: if a buffer was deleted a channel can't write to it
Problem: If a buffer was deleted a channel can't write to it.
Solution: When the buffer exists but was unloaded, prepare it for writing.
(closes #3764)
Bram Moolenaar [Thu, 3 Jan 2019 21:58:08 +0000 (22:58 +0100)]
patch 8.1.0686: when 'y' is in 'cpoptions' yanking for the clipboard changes redo
Problem: When 'y' is in 'cpoptions' yanking for the clipboard changes redo.
Solution: Do not use the 'y' flag when "gui_yank" is TRUE. (Andy Massimino,
closes #3760)
Bram Moolenaar [Tue, 1 Jan 2019 21:19:08 +0000 (22:19 +0100)]
patch 8.1.0677: look-behind match may use the wrong line number
Problem: Look-behind match may use the wrong line number. (Dominique Pelle)
Solution: Use the line number in regsave instead of the one in behind_pos,
we may be looking at the previous line. (closes #3749)
Bram Moolenaar [Tue, 1 Jan 2019 12:20:31 +0000 (13:20 +0100)]
patch 8.1.0673: functionality for signs is spread out over several files
Problem: Functionality for signs is spread out over several files.
Solution: Move most of the sign functionality into sign.c. (Yegappan
Lakshmanan, closes #3751)
Bram Moolenaar [Mon, 31 Dec 2018 12:57:36 +0000 (13:57 +0100)]
patch 8.1.0665: text property display wrong when 'spell' is set
Problem: Text property display wrong when 'spell' is set. (Dominique Pelle)
Solution: Remove unnecessary assignment to char_attr. Combine attributes if
needed. Add a screenshot test.
Bram Moolenaar [Sun, 30 Dec 2018 21:55:47 +0000 (22:55 +0100)]
patch 8.1.0664: configure "fail-if-missing" does not apply to enable-gui
Problem: Configure "fail-if-missing" does not apply to the enable-gui
argument. (Rhialto)
Solution: Make configure fail if a GUI was specifified and "fail-if-missing"
is enabled and the GUI test fails.
Bram Moolenaar [Sat, 29 Dec 2018 17:53:55 +0000 (18:53 +0100)]
patch 8.1.0658: deleting signs and completion for :sign is insufficient
Problem: Deleting signs and completion for :sign is insufficient.
Solution: Add deleting signs in a specified or any group from the current
cursor location. Add group and priority to sign command
completion. Add tests for different sign unplace commands. Update
help text. Add tests for sign jump with group. Update help for
sign jump. (Yegappan Lakshmanan, closes #3731)
Bram Moolenaar [Thu, 27 Dec 2018 22:44:44 +0000 (23:44 +0100)]
patch 8.1.0648: custom operators can't act upon a forced motion
Problem: Custom operators can't act upon a forced motion. (Christian
Wellenbrock)
Solution: Add the forced motion to the mode() result. (Christian Brabandt,
closes #3490)
Bram Moolenaar [Tue, 25 Dec 2018 23:25:20 +0000 (00:25 +0100)]
patch 8.1.0638: text property highlighting is off by one column
Problem: Text property highlighting is off by one column. (Bjorn Linse)
Solution: Update text property highlighting earlier. Let it overrule syntax
highlighting.
Bram Moolenaar [Tue, 25 Dec 2018 22:15:46 +0000 (23:15 +0100)]
patch 8.1.0636: line2byte() gives wrong values with text properties
Problem: line2byte() gives wrong values with text properties. (Bjorn Linse)
Solution: Compute byte offsets differently when text properties were added.
(closes #3718)
Bram Moolenaar [Mon, 24 Dec 2018 19:23:49 +0000 (20:23 +0100)]
patch 8.1.0632: using sign group names is inefficient
Problem: Using sign group names is inefficient.
Solution: Store group names in a hash table and use a reference to them.
Also remove unnecessary use of ":exe" from the tests. (Yegappan
Lakshmanan, closes #3715)