summaryrefslogtreecommitdiff
path: root/src/textprop.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.1.1929: no tests for text property popup windowv8.1.1929Bram Moolenaar2019-08-251-2/+1
| | | | | Problem: No tests for text property popup window. Solution: Add a few tests.
* patch 8.1.1928: popup windows don't move with the text when making changesv8.1.1928Bram Moolenaar2019-08-251-0/+48
| | | | | | | 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.
* patch 8.1.1891: functions used in one file are globalv8.1.1891Bram Moolenaar2019-08-201-1/+1
| | | | | Problem: Functions used in one file are global. Solution: Add "static". (Yegappan Lakshmanan, closes #4840)
* patch 8.1.1844: buffer no longer unloaded when adding text propertiesv8.1.1844Bram Moolenaar2019-08-131-1/+4
| | | | | Problem: Buffer no longer unloaded when adding text properties to it. Solution: Do not create the memfile. (closes #4808)
* patch 8.1.1827: allocating more memory than needed for extended structsv8.1.1827Bram Moolenaar2019-08-081-1/+1
| | | | | | Problem: Allocating more memory than needed for extended structs. Solution: Use offsetof() instead of sizeof(). (Dominique Pelle, closes #4786)
* patch 8.1.1463: gcc warns for uninitialized variablev8.1.1463Bram Moolenaar2019-06-041-3/+6
| | | | | Problem: Gcc warns for uninitialized variable. Solution: Put usage inside "if". (Ken Takata)
* patch 8.1.1414: alloc() returning "char_u *" causes a lot of type castsv8.1.1414Bram Moolenaar2019-05-281-3/+3
| | | | | | 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.
* patch 8.1.1407: popup_create() does not support text propertiesv8.1.1407Bram Moolenaar2019-05-261-21/+37
| | | | | Problem: Popup_create() does not support text properties. Solution: Support the third form of the text argument.
* patch 8.1.1393: unnecessary type castsv8.1.1393Bram Moolenaar2019-05-251-1/+1
| | | | | Problem: Unnecessary type casts. Solution: Remove type casts from alloc() and lalloc() calls. (Mike Williams)
* patch 8.1.1388: errors when calling prop_remove() for an unloaded bufferv8.1.1388Bram Moolenaar2019-05-241-9/+6
| | | | | | 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.
* patch 8.1.1387: calling prop_add() in an empty buffer doesn't workv8.1.1387Bram Moolenaar2019-05-241-1/+5
| | | | | | Problem: Calling prop_add() in an empty buffer doesn't work. (Dominique Pelle) Solution: Open the memline before adding a text property. (closes #4412)
* patch 8.1.1386: unessesary type casts for lalloc()v8.1.1386Bram Moolenaar2019-05-241-1/+1
| | | | | Problem: Unessesary type casts for lalloc(). Solution: Remove type casts. Change lalloc(size, TRUE) to alloc(size).
* patch 8.1.1376: warnings for size_t/int mixupsv8.1.1376Bram Moolenaar2019-05-241-4/+4
| | | | | Problem: Warnings for size_t/int mixups. Solution: Change types, add type casts. (Mike Williams)
* patch 8.1.1359: text property wrong after :substitute with backslashv8.1.1359Bram Moolenaar2019-05-191-9/+25
| | | | | | Problem: Text property wrong after :substitute with backslash. Solution: Adjust text property columns when removing backslashes. (closes #4397)
* patch 8.1.1351: text property wrong after :substitutev8.1.1351Bram Moolenaar2019-05-191-4/+15
| | | | | Problem: Text property wrong after :substitute. Solution: Save for undo before changing any text properties.
* patch 8.1.1343: text properties not adjusted for Visual block mode deletev8.1.1343Bram Moolenaar2019-05-171-3/+16
| | | | | Problem: Text properties not adjusted for Visual block mode delete. Solution: Call adjust_prop_columns(). (closes #4384)
* patch 8.1.1341: text properties are lost when joining linesv8.1.1341Bram Moolenaar2019-05-171-1/+106
| | | | | Problem: Text properties are lost when joining lines. Solution: Move the text properties to the joined line.
* patch 8.1.1340: attributes from 'cursorline' overwrite textpropv8.1.1340Bram Moolenaar2019-05-171-3/+0
| | | | | Problem: Attributes from 'cursorline' overwrite textprop. Solution: Combine the attributes. (closes #3912)
* patch 8.1.1337: get empty text prop when splitting line just after text propv8.1.1337Bram Moolenaar2019-05-171-1/+3
| | | | | 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.
* patch 8.1.1333: text properties don't always move after changesv8.1.1333Bram Moolenaar2019-05-151-17/+19
| | | | | | Problem: Text properties don't always move after changes. Solution: Update properties before reporting changes to listeners. Move text property when splitting a line.
* patch 8.1.1278: missing change for "combine" fieldv8.1.1278Bram Moolenaar2019-05-051-0/+11
| | | | | Problem: Missing change for "combine" field. Solution: Also change the textprop implementation.
* patch 8.1.1035: prop_remove() second argument is not optionalv8.1.1035Bram Moolenaar2019-03-221-1/+4
| | | | | Problem: prop_remove() second argument is not optional. Solution: Fix argument count. Use "buf" instead of "curbuf". (closes #4147)
* patch 8.1.0975: using STRNCPY() wrongly. Warning for uninitialized variablev8.1.0975Bram Moolenaar2019-02-221-2/+6
| | | | | | Problem: Using STRNCPY() wrongly. Warning for uninitialized variable. Solution: Use mch_memmove(). Initialize variable. (Yasuhiro Matsumoto, closes #3979)
* patch 8.1.0743: giving error messages is not flexiblev8.1.0743Bram Moolenaar2019-01-131-24/+24
| | | | | | | | 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.
* patch 8.1.0703: compiler warnings with 64-bit compilerv8.1.0703Bram Moolenaar2019-01-081-4/+4
| | | | | Problem: Compiler warnings with 64-bit compiler. Solution: Change types, add type casts. (Mike Williams)
* patch 8.1.0694: when using text props may free memory that is not allocatedv8.1.0694Bram Moolenaar2019-01-061-3/+10
| | | | | | Problem: When using text props may free memory that is not allocated. (Andy Massimino) Solution: Allocate the line when adjusting text props. (closes #3766)
* patch 8.1.0691: text properties are not adjusted for :substitutev8.1.0691Bram Moolenaar2019-01-041-0/+95
| | | | | Problem: Text properties are not adjusted for :substitute. Solution: Adjust text properties as well as possible.
* patch 8.1.0685: get_buf_tv() is named inconsistentlyv8.1.0685Bram Moolenaar2019-01-031-2/+2
| | | | | Problem: get_buf_tv() is named inconsistently. Solution: Rename it to tv_get_buf(). (Yegappan Lakshmanan, closes #3759)
* patch 8.1.0684: warnings from 64-bit compilerv8.1.0684Bram Moolenaar2019-01-031-3/+3
| | | | | Problem: Warnings from 64-bit compiler. Solution: Add type casts. (Mike Williams)
* patch 8.1.0682: text properties not adjusted when backspacing replaced textv8.1.0682Bram Moolenaar2019-01-021-11/+29
| | | | | Problem: Text properties are not adjusted when backspacing replaced text. Solution: Keep text properties on text restored in replace mode.
* patch 8.1.0678: text properties as not adjusted for inserted textv8.1.0678Bram Moolenaar2019-01-021-2/+38
| | | | | Problem: Text properties as not adjusted for inserted text. Solution: Adjust text properties when inserting text.
* patch 8.1.0675: text property column in screen columns is not practicalv8.1.0675Bram Moolenaar2019-01-011-8/+18
| | | | | Problem: Text property column is screen columns is not practical. Solution: Use byte values for the column.
* patch 8.1.0655: when appending a line text property flags are not addedv8.1.0655Bram Moolenaar2018-12-281-8/+6
| | | | | Problem: When appending a line text property flags are not added. Solution: Add text properties to a newly added line.
* patch 8.1.0636: line2byte() gives wrong values with text propertiesv8.1.0636Bram Moolenaar2018-12-251-13/+9
| | | | | | Problem: line2byte() gives wrong values with text properties. (Bjorn Linse) Solution: Compute byte offsets differently when text properties were added. (closes #3718)
* patch 8.1.0634: text properties cannot cross line boundariesv8.1.0634Bram Moolenaar2018-12-241-58/+106
| | | | | Problem: Text properties cannot cross line boundaries. Solution: Support multi-line text properties.
* patch 8.1.0615: get_tv function names are not consistentv8.1.0615Bram Moolenaar2018-12-211-13/+13
| | | | | Problem: Get_tv function names are not consistent. Solution: Rename to tv_get.
* patch 8.1.0601: a few compiler warningsv8.1.0601Bram Moolenaar2018-12-161-5/+5
| | | | | Problem: A few compiler warnings. Solution: Add type casts. (Mike Williams)
* patch 8.1.0583: using illogical name for get_dict_number()/get_dict_string()v8.1.0583Bram Moolenaar2018-12-141-9/+9
| | | | | Problem: Using illogical name for get_dict_number()/get_dict_string(). Solution: Rename to start with dict_.
* patch 8.1.0582: text properties are not enabledv8.1.0582Bram Moolenaar2018-12-141-10/+14
| | | | | | Problem: Text properties are not enabled. Solution: Fix sizeof argument and re-enable the text properties feature. Fix memory leak.
* patch 8.1.0579: cannot attach properties to textv8.1.0579Bram Moolenaar2018-12-131-0/+869
Problem: Cannot attach properties to text. Solution: First part of adding text properties.