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
Bram Moolenaar
5c65e6a062
patch 8.1.1337: get empty text prop when splitting line just after text prop
...
Problem: Get empty text prop when splitting line just after text prop.
Solution: Do not create an empty text prop at the start of the line.
2019-05-17 11:08:56 +02:00
Bram Moolenaar
45dd07f10a
patch 8.1.1333: text properties don't always move after changes
...
Problem: Text properties don't always move after changes.
Solution: Update properties before reporting changes to listeners. Move text
property when splitting a line.
2019-05-15 22:45:37 +02:00
Bram Moolenaar
58187f1c8a
patch 8.1.1278: missing change for "combine" field
...
Problem: Missing change for "combine" field.
Solution: Also change the textprop implementation.
2019-05-05 16:33:47 +02:00
Bram Moolenaar
0a2f578e22
patch 8.1.1035: prop_remove() second argument is not optional
...
Problem: prop_remove() second argument is not optional.
Solution: Fix argument count. Use "buf" instead of "curbuf". (closes #4147 )
2019-03-22 13:20:43 +01:00
Bram Moolenaar
c666388367
patch 8.1.0975: using STRNCPY() wrongly. Warning for uninitialized variable
...
Problem: Using STRNCPY() wrongly. Warning for uninitialized variable.
Solution: Use mch_memmove(). Initialize variable. (Yasuhiro Matsumoto,
closes #3979 )
2019-02-22 19:14:54 +01:00
Bram Moolenaar
f9e3e09fdc
patch 8.1.0743: giving error messages is not flexible
...
Problem: Giving error messages is not flexible.
Solution: Add semsg(). Change argument from "char_u *" to "char *", also
for msg() and get rid of most MSG macros. (Ozaki Kiichi, closes
#3302 ) Also make emsg() accept a "char *" argument. Get rid of
an enormous number of type casts.
2019-01-13 23:38:42 +01:00
Bram Moolenaar
8aef43b66c
patch 8.1.0703: compiler warnings with 64-bit compiler
...
Problem: Compiler warnings with 64-bit compiler.
Solution: Change types, add type casts. (Mike Williams)
2019-01-08 20:14:35 +01:00
Bram Moolenaar
4614f53e0f
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 )
2019-01-06 12:54:55 +01:00
Bram Moolenaar
4164bb204e
patch 8.1.0691: text properties are not adjusted for :substitute
...
Problem: Text properties are not adjusted for :substitute.
Solution: Adjust text properties as well as possible.
2019-01-04 23:09:49 +01:00
Bram Moolenaar
f2d79fa92d
patch 8.1.0685: get_buf_tv() is named inconsistently
...
Problem: get_buf_tv() is named inconsistently.
Solution: Rename it to tv_get_buf(). (Yegappan Lakshmanan, closes #3759 )
2019-01-03 22:19:27 +01:00
Bram Moolenaar
4b7214ea78
patch 8.1.0684: warnings from 64-bit compiler
...
Problem: Warnings from 64-bit compiler.
Solution: Add type casts. (Mike Williams)
2019-01-03 21:55:32 +01:00
Bram Moolenaar
196d157f12
patch 8.1.0682: text properties not adjusted when backspacing replaced text
...
Problem: Text properties are not adjusted when backspacing replaced text.
Solution: Keep text properties on text restored in replace mode.
2019-01-02 23:47:18 +01:00
Bram Moolenaar
44746aa1eb
patch 8.1.0678: text properties as not adjusted for inserted text
...
Problem: Text properties as not adjusted for inserted text.
Solution: Adjust text properties when inserting text.
2019-01-02 00:02:11 +01:00
Bram Moolenaar
b9c67a51c1
patch 8.1.0675: text property column in screen columns is not practical
...
Problem: Text property column is screen columns is not practical.
Solution: Use byte values for the column.
2019-01-01 19:49:20 +01:00
Bram Moolenaar
b56ac049ea
patch 8.1.0655: when appending a line text property flags are not added
...
Problem: When appending a line text property flags are not added.
Solution: Add text properties to a newly added line.
2018-12-28 23:22:40 +01:00
Bram Moolenaar
b413d2e6a8
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 )
2018-12-25 23:15:46 +01:00
Bram Moolenaar
e3d31b02a5
patch 8.1.0634: text properties cannot cross line boundaries
...
Problem: Text properties cannot cross line boundaries.
Solution: Support multi-line text properties.
2018-12-24 23:07:04 +01:00
Bram Moolenaar
d155d7a851
patch 8.1.0615: get_tv function names are not consistent
...
Problem: Get_tv function names are not consistent.
Solution: Rename to tv_get.
2018-12-21 16:04:21 +01:00