Yegappan Lakshmanan
4490ec4e83
patch 8.2.3229: Vim9: runtime and compile time type checks are not the same
...
Problem: Vim9: runtime and compile time type checks are not the same.
Solution: Add more runtime type checks for builtin functions. (Yegappan
Lakshmanan, closes #8646 )
2021-07-27 22:00:44 +02:00
Yegappan Lakshmanan
83494b4ac6
patch 8.2.3188: Vim9: argument types are not checked at compile time
...
Problem: Vim9: argument types are not checked at compile time.
Solution: Add several more type checks, also at runtime. (Yegappan
Lakshmanan, closes #8587 )
2021-07-20 17:51:51 +02:00
Yegappan Lakshmanan
1a71d31bf3
patch 8.2.3162: Vim9: argument types are not checked at compile time
...
Problem: Vim9: argument types are not checked at compile time.
Solution: Add more type checks. (Yegappan Lakshmanan, closes #8560 )
2021-07-15 12:49:58 +02:00
Yegappan Lakshmanan
5b73992d8f
patch 8.2.3135: Vim9: builtin function arguments not checked at compile time
...
Problem: Vim9: builtin function arguments not checked at compile time.
Solution: Add more type checks. (Yegappan Lakshmanan, closes #8539 )
2021-07-10 13:15:41 +02:00
Bram Moolenaar
108010aa47
patch 8.2.3069: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move some error messages to errors.h. Use clearer names.
2021-06-27 22:03:33 +02:00
Bram Moolenaar
965c04486c
patch 8.2.2863: removing a text property does not redraw optimally
...
Problem: Removing a text property does not redraw optimally.
Solution: Only redraw the lines that mithg actually have been changed.
2021-05-17 00:22:06 +02:00
Bram Moolenaar
fc643e6016
patch 8.2.2862: removing a text property causes the whole window to be redawn
...
Problem: Removing a text property causes the whole window to be redawn.
Solution: Use changed_lines_buf() to only redraw the affected lines.
2021-05-17 00:15:18 +02:00
Bram Moolenaar
1764faa386
patch 8.2.2860: adding a text property causes the whole window to be redawn
...
Problem: Adding a text property causes the whole window to be redawn.
Solution: Use changed_lines_buf() to only redraw the affected lines.
2021-05-16 20:18:57 +02:00
Bram Moolenaar
24f21fdfca
patch 8.2.2667: prop_find() cannot find item matching both id and type
...
Problem: prop_find() cannot find item matching both id and type.
Solution: Add the "both" argument. (Naohiro Ono, closes #8019 )
2021-03-27 22:07:29 +01:00
Bram Moolenaar
da1dbed0df
patch 8.2.2644: prop_clear() causes a screen update even when nothing changed
...
Problem: prop_clear() causes a screen update even when nothing changed.
Solution: Only redraw when a property was cleared. (Dominique Pellé)
2021-03-22 19:43:34 +01:00
Bram Moolenaar
09f8b3a022
patch 8.2.2637: prop_remove() causes a redraw even when nothing changed
...
Problem: prop_remove() causes a redraw even when nothing changed.
Solution: Only redraw if a property was removed.
2021-03-21 22:29:54 +01:00
Bram Moolenaar
23999d799c
patch 8.2.2198: ml_get error when resizing window and using text property
...
Problem: ml_get error when resizing window and using text property.
Solution: Validate botline of the right window. (closes #7528 )
2020-12-23 14:36:00 +01:00
Bram Moolenaar
8e7d6223f6
patch 8.2.2160: various typos
...
Problem: Various typos.
Solution: Fix spelling mistakes. (closes #7494 )
2020-12-18 19:49:56 +01:00
Bram Moolenaar
8902b31f1b
patch 8.2.1714: text properties corrupted with substitute command
...
Problem: Text properties corrupted with substitute command. (Filipe
Brandenburger)
Solution: Get the changed line again after using u_savesub(). (closes #6984 )
2020-09-20 21:04:35 +02:00
Bram Moolenaar
fa2e38df76
patch 8.2.1613: Vim9: cannot pass "true" to prop_type_add()
...
Problem: Vim9: cannot pass "true" to prop_type_add().
Solution: Use tv_get_bool(). (closes #6850 )
2020-09-05 21:00:00 +02:00
Bram Moolenaar
a5a40c5696
patch 8.2.1612: Vim9: cannot pass "true" to prop_remove()
...
Problem: Vim9: cannot pass "true" to prop_remove().
Solution: Use dict_get_bool(). (closes #6853 )
2020-09-05 20:50:49 +02:00
Bram Moolenaar
eb24556df3
patch 8.2.1584: Vim9: cannot use "true" for "skipstart" in prop_find()
...
Problem: Vim9: cannot use "true" for "skipstart" in prop_find().
Solution: Use dict_get_bool() instead of tv_get_number(). (closes #6852 )
2020-09-03 22:33:44 +02:00
Bram Moolenaar
4da7a259f6
patch 8.2.1568: prop_find() skips properties in the same line
...
Problem: prop_find() skips properties in the same line if "skipstart" is
used.
Solution: Use "continue" instead of "break". (closes #6840 )
2020-09-02 19:59:00 +02:00
Bram Moolenaar
cf070112ca
patch 8.2.1092: not checking if saving for undo succeeds
...
Problem: Not checking if saving for undo succeeds.
Solution: Bail out if u_savesub() returns FAIL.
2020-06-29 23:02:21 +02:00
Bram Moolenaar
87be9be1db
patch 8.2.0845: text properties crossing lines not handled correctly
...
Problem: Text properties crossing lines not handled correctly.
Solution: When joining lines merge text properties if possible.
(Axel Forsman, closes #5839 , closes #5683 )
2020-05-30 15:32:02 +02:00
Bram Moolenaar
965fd8d4dc
patch 8.2.0379: gcc warns for ambiguous else
...
Problem: Gcc warns for ambiguous else.
Solution: Add braces. (Dominique Pelle, closes #5778 )
2020-03-14 07:46:40 +01:00
Bram Moolenaar
346f18e5fe
patch 8.2.0378: prop_find() does not find all props
...
Problem: prop_find() does not find all props.
Solution: Check being in the start line. (Axel Forsman, closes #5776 )
2020-03-13 21:36:40 +01:00
Bram Moolenaar
66b98854d8
patch 8.2.0372: prop_find() may not find text property at start of the line
...
Problem: Prop_find() may not find text property at start of the line.
Solution: Adjust the loop to find properties. (Axel Forsman, closes #5761 ,
closes #5663 )
2020-03-11 19:15:52 +01:00
Bram Moolenaar
49b79bd488
patch 8.2.0357: cannot delete a text property matching both id and type
...
Problem: Cannot delete a text property matching both id and type. (Axel
Forsman)
Solution: Add the "both" argument.
2020-03-05 21:52:55 +01:00
Bram Moolenaar
12f2003871
patch 8.2.0324: text property not updated correctly when inserting/deleting
...
Problem: Text property not updated correctly when inserting/deleting.
Solution: Use the right column when deleting. Make zero-width text
properties respect start_incl and end_incl. (Axel Forsman,
closes #5696 , closes #5679 )
2020-02-26 22:06:00 +01:00
Bram Moolenaar
e05a89ac63
patch 8.2.0110: prop_find() is not implemented
...
Problem: prop_find() is not implemented.
Solution: Implement prop_find(). (Ryan Hackett, closes #5421 , closes #4970 )
2020-01-10 19:56:46 +01:00
Bram Moolenaar
3d8a513b46
patch 8.2.0085: dead code in builtin functions
...
Problem: Dead code in builtin functions.
Solution: Clean up the code.
2020-01-04 16:13:49 +01:00
Bram Moolenaar
05ad5ff0ab
patch 8.1.2371: FEAT_TEXT_PROP is a confusing name
...
Problem: FEAT_TEXT_PROP is a confusing name.
Solution: Use FEAT_PROP_POPUP. (Naruhiko Nishino, closes #5291 )
2019-11-30 22:48:27 +01:00
Bram Moolenaar
ecafcc15ca
patch 8.1.2308: deleting text before zero-width textprop removes it
...
Problem: Deleting text before zero-width textprop removes it.
Solution: Keep zero-width textprop when deleting text.
2019-11-16 20:41:51 +01:00
Bram Moolenaar
0743ef9f8a
patch 8.1.2298: missing part of 8.1.2296
...
Problem: Missing part of 8.1.2296.
Solution: s/test/text/
2019-11-13 16:37:31 +01:00
Bram Moolenaar
32aa10203b
patch 8.1.2243: typos in comments
...
Problem: Typos in comments.
Solution: Fix the typos. (Dominique Pelle, closes #5160 ) Also adjust
formatting a bit.
2019-11-02 22:54:41 +01:00
Bram Moolenaar
7aee6876eb
patch 8.1.2215: unreachable code in adjusting text prop columns
...
Problem: Unreachable code in adjusting text prop columns.
Solution: Remove the code. (Christian Brabandt)
2019-10-25 21:49:38 +02:00
Bram Moolenaar
8e95636a28
patch 8.1.1929: no tests for text property popup window
...
Problem: No tests for text property popup window.
Solution: Add a few tests.
2019-08-25 23:08:17 +02:00
Bram Moolenaar
12034e22dd
patch 8.1.1928: popup windows don't move with the text when making changes
...
Problem: Popup windows don't move with the text when making changes.
Solution: Add the 'textprop" property to the popup window options, position
the popup relative to a text property. (closes #4560 )
No tests yet.
2019-08-25 22:25:02 +02:00
Bram Moolenaar
5843f5f37b
patch 8.1.1891: functions used in one file are global
...
Problem: Functions used in one file are global.
Solution: Add "static". (Yegappan Lakshmanan, closes #4840 )
2019-08-20 20:13:45 +02:00
Bram Moolenaar
45311b5274
patch 8.1.1844: buffer no longer unloaded when adding text properties
...
Problem: Buffer no longer unloaded when adding text properties to it.
Solution: Do not create the memfile. (closes #4808 )
2019-08-13 22:27:32 +02:00
Bram Moolenaar
47ed553fd5
patch 8.1.1827: allocating more memory than needed for extended structs
...
Problem: Allocating more memory than needed for extended structs.
Solution: Use offsetof() instead of sizeof(). (Dominique Pelle,
closes #4786 )
2019-08-08 20:49:14 +02:00
Bram Moolenaar
277e79adc4
patch 8.1.1463: gcc warns for uninitialized variable
...
Problem: Gcc warns for uninitialized variable.
Solution: Put usage inside "if". (Ken Takata)
2019-06-04 19:16:29 +02:00
Bram Moolenaar
c799fe206e
patch 8.1.1414: alloc() returning "char_u *" causes a lot of type casts
...
Problem: Alloc() returning "char_u *" causes a lot of type casts.
Solution: Have it return "void *". (Mike Williams) Define ALLOC_ONE() to
check the simple allocations.
2019-05-28 23:08:19 +02:00
Bram Moolenaar
7a8d0278bd
patch 8.1.1407: popup_create() does not support text properties
...
Problem: Popup_create() does not support text properties.
Solution: Support the third form of the text argument.
2019-05-26 23:32:06 +02:00
Bram Moolenaar
51e14387f1
patch 8.1.1393: unnecessary type casts
...
Problem: Unnecessary type casts.
Solution: Remove type casts from alloc() and lalloc() calls. (Mike Williams)
2019-05-25 20:21:28 +02:00
Bram Moolenaar
f0884c5f3f
patch 8.1.1388: errors when calling prop_remove() for an unloaded buffer
...
Problem: Errors when calling prop_remove() for an unloaded buffer.
Solution: Bail out when the buffer is not loaded. Add a few more tests for
failing when the buffer number is invalid.
2019-05-24 21:22:29 +02:00
Bram Moolenaar
d79eef2eb1
patch 8.1.1387: calling prop_add() in an empty buffer doesn't work
...
Problem: Calling prop_add() in an empty buffer doesn't work. (Dominique
Pelle)
Solution: Open the memline before adding a text property. (closes #4412 )
2019-05-24 20:41:55 +02:00
Bram Moolenaar
18a4ba29ae
patch 8.1.1386: unessesary type casts for lalloc()
...
Problem: Unessesary type casts for lalloc().
Solution: Remove type casts. Change lalloc(size, TRUE) to alloc(size).
2019-05-24 19:39:03 +02:00
Bram Moolenaar
e2ad826f43
patch 8.1.1376: warnings for size_t/int mixups
...
Problem: Warnings for size_t/int mixups.
Solution: Change types, add type casts. (Mike Williams)
2019-05-24 13:22:22 +02:00
Bram Moolenaar
f3333b02f3
patch 8.1.1359: text property wrong after :substitute with backslash
...
Problem: Text property wrong after :substitute with backslash.
Solution: Adjust text property columns when removing backslashes.
(closes #4397 )
2019-05-19 22:53:40 +02:00
Bram Moolenaar
338dfdad38
patch 8.1.1351: text property wrong after :substitute
...
Problem: Text property wrong after :substitute.
Solution: Save for undo before changing any text properties.
2019-05-19 15:19:57 +02:00
Bram Moolenaar
8055d17388
patch 8.1.1343: text properties not adjusted for Visual block mode delete
...
Problem: Text properties not adjusted for Visual block mode delete.
Solution: Call adjust_prop_columns(). (closes #4384 )
2019-05-17 22:57:26 +02:00
Bram Moolenaar
80e737cc6a
patch 8.1.1341: text properties are lost when joining lines
...
Problem: Text properties are lost when joining lines.
Solution: Move the text properties to the joined line.
2019-05-17 19:56:34 +02:00
Bram Moolenaar
bfd451283f
patch 8.1.1340: attributes from 'cursorline' overwrite textprop
...
Problem: Attributes from 'cursorline' overwrite textprop.
Solution: Combine the attributes. (closes #3912 )
2019-05-17 13:05:07 +02:00