Bram Moolenaar
56564964e6
patch 9.0.0719: too many delete() calls in tests
...
Problem: Too many delete() calls in tests.
Solution: Use deferred delete where possible.
2022-10-10 22:39:42 +01:00
Bram Moolenaar
2b1ddf19f8
patch 9.0.0527: long sign text may overflow buffer
...
Problem: Long sign text may overflow buffer.
Solution: Use a larger buffer. Prevent for overflow.
2022-09-21 11:21:57 +01:00
Yegappan Lakshmanan
8deb2b30c7
patch 9.0.0359: error message for wrong argument type is not specific
...
Problem: Error message for wrong argument type is not specific.
Solution: Include more information in the error. (Yegappan Lakshmanan,
closes #11037 )
2022-09-02 15:15:27 +01:00
Bram Moolenaar
d83392a43a
patch 9.0.0345: error message for list argument could be clearer
...
Problem: Error message for list argument could be clearer.
Solution: Include the argument number. (Yegappan Lakshmanan, closes #11027 )
2022-09-01 12:22:46 +01:00
Yegappan Lakshmanan
04c4c5746e
patch 9.0.0335: checks for Dictionary argument often give a vague error
...
Problem: Checks for Dictionary argument often give a vague error message.
Solution: Give a useful error message. (Yegappan Lakshmanan, closes #11009 )
2022-08-30 19:48:24 +01:00
James McCoy
a80aad7174
patch 8.2.3874: cannot highlight the number column for a sign
...
Problem: Cannot highlight the number column for a sign.
Solution: Add the "numhl" argument. (James McCoy, closes #9381 )
2021-12-22 19:45:28 +00:00
Bram Moolenaar
e5710a02cb
patch 8.2.3748: giving an error for an empty sign argument breaks a plugin
...
Problem: Giving an error for an empty sign argument breaks a plugin.
Solution: Do not give an error.
2021-12-05 19:10:04 +00:00
Bram Moolenaar
0bac5fc5e1
patch 8.2.3747: cannot remove highlight from an existing sign
...
Problem: Cannot remove highlight from an existing sign. (James McCoy)
Solution: Only reject empty argument for a new sign.
2021-12-05 17:45:49 +00:00
Bram Moolenaar
5e18ccc60b
patch 8.2.3743: ":sign" can add a highlight group without a name
...
Problem: ":sign" can add a highlight group without a name.
Solution: Give an error if the group name is missing. (closes #9280 )
2021-12-05 13:02:50 +00:00
Bram Moolenaar
e413ea04b7
patch 8.2.3664: cannot adjust sign highlighting for 'cursorline'
...
Problem: Cannot adjust sign highlighting for 'cursorline'.
Solution: Add CursorLineSign and CursorLineFold highlight groups.
(Gregory Anders, closes #9201 )
2021-11-24 16:20:13 +00:00
Bram Moolenaar
5c56da4de8
patch 8.2.3381: crash when using NULL list with sign functions
...
Problem: Crash when using NULL list with sign functions.
Solution: Handle a NULL list like an empty list. (issue #8260 )
2021-08-28 14:42:25 +02:00
Bram Moolenaar
e2e4075fad
patch 8.2.1593: tests do not check the error number properly
...
Problem: Tests do not check the error number properly.0
Solution: Add a colon after the error number. (closes #6869 )
2020-09-04 21:18:46 +02:00
Bram Moolenaar
39f7aa3c31
patch 8.2.1556: cursorline highlighting always overrules sign highlighting
...
Problem: Cursorline highlighting always overrules sign highlighting.
Solution: Combine the highlighting, use the priority to decide how.
(closes #6812 )
2020-08-31 22:00:05 +02:00
Bram Moolenaar
6d91bcb4d2
patch 8.2.1432: various inconsistencies in test files
...
Problem: Various inconsistencies in test files.
Solution: Add modelines where they were missing. Use Check commands instead
of silently skipping over tests. Adjust indents and comments.
(Ken Takata, closes #6695 )
2020-08-12 18:50:36 +02:00
Bram Moolenaar
9b7bf9e98f
patch 8.2.1183: assert_fails() checks the last error message
...
Problem: assert_fails() checks the last error message.
Solution: Check the first error, it is more relevant. Fix all the tests
that rely on the old behavior.
2020-07-11 22:14:59 +02:00
Bram Moolenaar
494e9069cb
patch 8.2.0866: not enough tests for buffer writing
...
Problem: Not enough tests for buffer writing.
Solution: Add more tests. Use CheckRunVimInTerminal in more places.
(Yegappan Lakshmanan, closes #6167 )
2020-05-31 21:28:02 +02:00
Bram Moolenaar
a2f6e42ded
patch 8.2.0281: two placed signs in the same line are not combined
...
Problem: Two placed signs in the same line are not combined. E.g. in the
terminal debugger a breakpoint and the PC cannot be both be
displayed.
Solution: Combine the sign column and line highlight attributes.
2020-02-19 17:13:04 +01:00
Bram Moolenaar
bf0acff012
patch 8.2.0108: when sign text is changed a manual redraw is needed
...
Problem: When sign text is changed a manual redraw is needed. (Pontus
Lietzler)
Solution: Redraw automatically. (closes #5455 )
2020-01-09 21:01:59 +01:00
Bram Moolenaar
93476fd634
patch 8.1.1995: more functions can be used as methods
...
Problem: More functions can be used as methods.
Solution: Make sign functions usable as a method.
2019-09-06 22:00:54 +02:00
Bram Moolenaar
d933c82ff4
patch 8.1.1900: sign test fails in the GUI
...
Problem: Sign test fails in the GUI.
Solution: Catch and ignore the exception.
2019-08-21 13:45:16 +02:00
Bram Moolenaar
42aff46d97
patch 8.1.1899: sign_place() does not work as documented
...
Problem: sign_place() does not work as documented.
Solution: Make accept line numbers like line(). (Yegappan Lakshmanan,
closes #4848 )
2019-08-21 13:20:29 +02:00
Bram Moolenaar
d6bcff4577
patch 8.1.1712: signs in number column cause text to be misaligned
...
Problem: Signs in number column cause text to be misaligned.
Solution: Improve alignment. (Yasuhiro Matsumoto, closes #4694 )
2019-07-18 12:48:16 +02:00
Bram Moolenaar
809ce4d317
patch 8.1.1682: placing a larger number of signs is slow
...
Problem: Placing a larger number of signs is slow.
Solution: Add functions for dealing with a list of signs. (Yegappan
Lakshmanan, closes #4636 )
2019-07-13 21:21:40 +02:00
Bram Moolenaar
e4b407f536
patch 8.1.1623: display wrong with signs in narrow number column
...
Problem: Display wrong with signs in narrow number column.
Solution: Increase the numbercolumn width if needed. (Yegappan Lakshmanan,
closes #4606 )
2019-07-04 11:59:28 +02:00
Bram Moolenaar
4dff4aed09
patch 8.1.1570: icon signs not displayed properly in the number column
...
Problem: Icon signs not displayed properly in the number column.
Solution: Display them properly. (Yegappan Lakshmanan, closes #4559 )
2019-06-19 16:31:28 +02:00
Bram Moolenaar
394c5d8870
patch 8.1.1564: sign column takes up space
...
Problem: Sign column takes up space. (Adam Stankiewicz)
Solution: Optionally put signs in the number column. (Yegappan Lakshmanan,
closes #4555 , closes #4515 )
2019-06-17 21:48:05 +02:00
Bram Moolenaar
f85e40afc2
patch 8.1.1552: cursor position is wrong after sign column changes
...
Problem: Cursor position is wrong after sign column appears or disappears.
(Yegappan Lakshmanan)
Solution: Call changed_line_abv_curs() instead of changed_cline_bef_curs().
2019-06-16 13:55:40 +02:00
Bram Moolenaar
b46fecd345
patch 8.1.1544: some balloon tests don't run when they can
...
Problem: Some balloon tests don't run when they can.
Solution: Split GUI balloon tests off into a separate file. (Ozaki Kiichi,
closes #4538 ) Change the feature check into a command for
consistency.
2019-06-15 17:58:09 +02:00
Bram Moolenaar
b0f94c1ff3
patch 8.1.1524: tests are silently skipped
...
Problem: Tests are silently skipped.
Solution: Throw an exception for skipped tests in more places.
2019-06-13 22:19:53 +02:00
Bram Moolenaar
64416127fc
patch 8.1.1489: sign order wrong when priority was changed
...
Problem: Sign order wrong when priority was changed.
Solution: Reorder signs when priority is changed. (Yegappan Lakshmanan,
closes #4502 )
2019-06-07 21:37:13 +02:00
Bram Moolenaar
58a7f87c86
patch 8.1.1466: not updating priority on existing sign
...
Problem: Not updating priority on existing sign.
Solution: Set the sign priority. Add a test. (Yegappan Lakshmanan)
2019-06-04 22:48:15 +02:00
Bram Moolenaar
3678f65d43
patch 8.1.0939: no completion for sign group names
...
Problem: No completion for sign group names.
Solution: Add completion for sign group names and buffer names. (Yegappan
Lakshmanan, closes #3980 )
2019-02-17 14:50:25 +01:00
Bram Moolenaar
c771bf9016
patch 8.1.0767: when deleting lines at the bottom signs are misplaced
...
Problem: When deleting lines at the bottom signs are misplaced.
Solution: Properly update the line number of signs at the end of a buffer
after a delete/undo operation. (Yegappan Lakshmanan, closes #3798 )
2019-01-17 17:36:45 +01:00
Bram Moolenaar
6b7b7190aa
patch 8.1.0717: there is no function for the ":sign jump" command
...
Problem: There is no function for the ":sign jump" command.
Solution: Add the sign_jump() function. (Yegappan Lakshmanan, closes #3780 )
2019-01-11 13:42:41 +01:00
Bram Moolenaar
b589f95b38
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 )
2019-01-07 22:10:00 +01:00
Bram Moolenaar
d730c8e297
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.
2019-01-07 21:16:53 +01:00
Bram Moolenaar
b328cca254
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 )
2019-01-06 16:24:01 +01:00
Bram Moolenaar
2cbc1a02cb
patch 8.1.0679: sign functions do not take buffer argument as documented
...
Problem: Sign functions do not take buffer argument as documented.
Solution: Use get_buf_tv(). (Yegappan Lakshmanan, closes #3755 )
2019-01-02 13:40:31 +01:00
Bram Moolenaar
a355652ea5
patch 8.1.0669: the ex_sign() function is too long
...
Problem: The ex_sign() function is too long.
Solution: Refactor the function. Add a bit more testing. (Yegappan
Lakshmanan, closes #3745 )
2018-12-31 22:02:29 +01:00
Bram Moolenaar
1ea88a3e12
patch 8.1.0660: sign_cleanup() may leak memory
...
Problem: sign_cleanup() may leak memory.
Solution: Free the group name before returning. Add a few more tests.
(Yegappan Lakshmanan)
2018-12-29 21:00:27 +01:00
Bram Moolenaar
7d83bf4f2b
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 )
2018-12-29 18:53:55 +01:00
Bram Moolenaar
6436cd83f9
patch 8.1.0644: finding next sign ID is inefficient
...
Problem: Finding next sign ID is inefficient.
Solution: Add next_sign_id. (Yegappan Lakshmanan, closes #3717 )
2018-12-27 00:28:33 +01:00
Bram Moolenaar
7a2d9892b7
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 )
2018-12-24 20:23:49 +01:00
Bram Moolenaar
162b71479b
patch 8.1.0614: placing signs can be complicated
...
Problem: Placing signs can be complicated.
Solution: Add functions for defining and placing signs. Introduce a group
name to avoid different plugins using the same signs. (Yegappan
Lakshmanan, closes #3652 )
2018-12-21 15:17:36 +01:00
Bram Moolenaar
06b056e110
patch 8.1.0588: cannot define a sign with space in the text
...
Problem: Cannot define a sign with space in the text.
Solution: Allow for escaping characters. (Ben Jackson, closes #2967 )
2018-12-14 19:37:08 +01:00
Bram Moolenaar
cf1ba35fc2
patch 8.0.1224: still interference between test functions
...
Problem: Still interference between test functions.
Solution: Clear autocommands. Wipe all buffers. Fix tests that depend on a
specific start context.
2017-10-27 00:55:04 +02:00
Bram Moolenaar
64cefedfc8
patch 7.4.2294
...
Problem: Sign test fails on MS-Windows when using the distributed zip
archives.
Solution: Create dummy files instead of relying on files in the pixmaps
directory.
2016-08-29 23:06:28 +02:00
Bram Moolenaar
bfd096d020
patch 7.4.2225
...
Problem: Crash when placing a sign in a deleted buffer.
Solution: Check for missing buffer name. (Dominique Pelle). Add a test.
2016-08-17 22:29:09 +02:00
Bram Moolenaar
446a973ce3
patch 7.4.2194
...
Problem: Sign tests don't cover enough.
Solution: Add more test cases. (Dominique Pelle)
2016-08-10 21:36:23 +02:00
Bram Moolenaar
09de17536d
patch 7.4.2183
...
Problem: Sign tests are old style.
Solution: Turn them into new style tests. (Dominique Pelle)
2016-08-08 22:26:48 +02:00