summaryrefslogtreecommitdiff
path: root/src/testdir/test_textprop.vim
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.2.2429: :goto does not work correctly with text propertiesv8.2.2429Bram Moolenaar2021-01-301-0/+30
| | | | | | Problem: :goto does not work correctly with text properties. (Sam McCall) Solution: Add a test. (Andrew Radev) Also use the text property size when computing the remaining offset. (closes #5930)
* patch 8.2.2198: ml_get error when resizing window and using text propertyv8.2.2198Bram Moolenaar2020-12-231-0/+20
| | | | | Problem: ml_get error when resizing window and using text property. Solution: Validate botline of the right window. (closes #7528)
* patch 8.2.2082: Vim9: can still use the depricated #{} dict syntaxv8.2.2082Bram Moolenaar2020-12-021-6/+6
| | | | | Problem: Vim9: can still use the depricated #{} dict syntax. Solution: Remove support for #{} in Vim9 script. (closes #7406, closes #7405)
* patch 8.2.1766: Vim9: Some tests are still using :letv8.2.1766Bram Moolenaar2020-09-271-2/+2
| | | | | Problem: Vim9: Some tests are still using :let. Solution: Change the last few declarations to use :var.
* patch 8.2.1714: text properties corrupted with substitute commandv8.2.1714Bram Moolenaar2020-09-201-0/+13
| | | | | | Problem: Text properties corrupted with substitute command. (Filipe Brandenburger) Solution: Get the changed line again after using u_savesub(). (closes #6984)
* patch 8.2.1690: text properties not adjusted for "I" in Visual block modev8.2.1690Bram Moolenaar2020-09-151-0/+31
| | | | | Problem: Text properties not adjusted for "I" in Visual block mode. Solution: Call inserted_bytes().
* patch 8.2.1688: increment/decrement removes text propertyv8.2.1688Bram Moolenaar2020-09-151-1/+21
| | | | | Problem: Increment/decrement removes text property. Solution: Insert the new number before deleting the old one. (closes #6962)
* patch 8.2.1623: Vim9: using :call where it is not neededv8.2.1623Bram Moolenaar2020-09-061-4/+4
| | | | | Problem: Vim9: using :call where it is not needed. Solution: Remove :call. (closes #6892)
* patch 8.2.1613: Vim9: cannot pass "true" to prop_type_add()v8.2.1613Bram Moolenaar2020-09-051-0/+11
| | | | | Problem: Vim9: cannot pass "true" to prop_type_add(). Solution: Use tv_get_bool(). (closes #6850)
* patch 8.2.1612: Vim9: cannot pass "true" to prop_remove()v8.2.1612Bram Moolenaar2020-09-051-0/+9
| | | | | Problem: Vim9: cannot pass "true" to prop_remove(). Solution: Use dict_get_bool(). (closes #6853)
* patch 8.2.1593: tests do not check the error number properlyv8.2.1593Bram Moolenaar2020-09-041-2/+2
| | | | | Problem: Tests do not check the error number properly.0 Solution: Add a colon after the error number. (closes #6869)
* patch 8.2.1584: Vim9: cannot use "true" for "skipstart" in prop_find()v8.2.1584Bram Moolenaar2020-09-031-10/+15
| | | | | Problem: Vim9: cannot use "true" for "skipstart" in prop_find(). Solution: Use dict_get_bool() instead of tv_get_number(). (closes #6852)
* patch 8.2.1568: prop_find() skips properties in the same linev8.2.1568Bram Moolenaar2020-09-021-0/+16
| | | | | | Problem: prop_find() skips properties in the same line if "skipstart" is used. Solution: Use "continue" instead of "break". (closes #6840)
* patch 8.2.1326: Vim9: skipping over white space after listv8.2.1326Bram Moolenaar2020-07-301-1/+1
| | | | | | Problem: Vim9: skipping over white space after list. Solution: Do not skip white space, a following [] would be misinterpreted. (closes #6552) Fix a few side effects.
* patch 8.2.1183: assert_fails() checks the last error messagev8.2.1183Bram Moolenaar2020-07-111-4/+4
| | | | | | 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.
* patch 8.2.0845: text properties crossing lines not handled correctlyv8.2.0845Bram Moolenaar2020-05-301-0/+25
| | | | | | Problem: Text properties crossing lines not handled correctly. Solution: When joining lines merge text properties if possible. (Axel Forsman, closes #5839, closes #5683)
* patch 8.2.0644: insufficient testing for invalid function argumentsv8.2.0644Bram Moolenaar2020-04-261-0/+25
| | | | | Problem: Insufficient testing for invalid function arguments. Solution: Add more tests. (Yegappan Lakshmanan, closes #5988)
* patch 8.2.0378: prop_find() does not find all propsv8.2.0378Bram Moolenaar2020-03-131-0/+11
| | | | | Problem: prop_find() does not find all props. Solution: Check being in the start line. (Axel Forsman, closes #5776)
* patch 8.2.0372: prop_find() may not find text property at start of the linev8.2.0372Bram Moolenaar2020-03-111-0/+27
| | | | | | 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)
* patch 8.2.0357: cannot delete a text property matching both id and typev8.2.0357Bram Moolenaar2020-03-051-0/+17
| | | | | | Problem: Cannot delete a text property matching both id and type. (Axel Forsman) Solution: Add the "both" argument.
* patch 8.2.0324: text property not updated correctly when inserting/deletingv8.2.0324Bram Moolenaar2020-02-261-4/+9
| | | | | | | 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)
* patch 8.2.0115: byte2line() does not work correctly with text propertiesv8.2.0115Bram Moolenaar2020-01-131-1/+17
| | | | | | | Problem: Byte2line() does not work correctly with text properties. (Billie Cleek) Solution: Take the bytes of the text properties into account. (closes #5334)
* patch 8.2.0110: prop_find() is not implementedv8.2.0110Bram Moolenaar2020-01-101-0/+112
| | | | | Problem: prop_find() is not implemented. Solution: Implement prop_find(). (Ryan Hackett, closes #5421, closes #4970)
* patch 8.2.0109: corrupted text properties when expanding spacesv8.2.0109Bram Moolenaar2020-01-091-11/+66
| | | | | Problem: Corrupted text properties when expanding spaces. Solution: Reallocate the line. (Nobuhiro Takasaki, closes #5457)
* patch 8.2.0083: text properties wrong when tabs and spaces are exchangedv8.2.0083Bram Moolenaar2020-01-031-0/+36
| | | | | | Problem: Text properties wrong when tabs and spaces are exchanged. Solution: Take text properties into account. (Nobuhiro Takasaki, closes #5427)
* patch 8.1.2308: deleting text before zero-width textprop removes itv8.1.2308Bram Moolenaar2019-11-161-0/+29
| | | | | Problem: Deleting text before zero-width textprop removes it. Solution: Keep zero-width textprop when deleting text.
* patch 8.1.2296: text properties are not combined with syntax by defaultv8.1.2296Bram Moolenaar2019-11-121-1/+1
| | | | | Problem: Text properties are not combined with syntax by default. Solution: Make it work as documented. (closes #5190)
* patch 8.1.2279: computation of highlight attributes is too complicatedv8.1.2279Bram Moolenaar2019-11-091-3/+5
| | | | | | Problem: Computation of highlight attributes is too complicated. Solution: Simplify the attribute computation and make it more consistent. (closes #5190) Fix that 'combine' set to zero doesn't work.
* patch 8.1.2216: text property in wrong place after :substitutev8.1.2216Bram Moolenaar2019-10-251-0/+28
| | | | | | Problem: Text property in wrong place after :substitute. Solution: Pass the new column instead of the old one. (Christian Brabandt, closes #4427)
* patch 8.1.2153: combining text property and syntax highlight is wrongv8.1.2153Bram Moolenaar2019-10-161-8/+27
| | | | | | | Problem: Combining text property and syntax highlight is wrong. (Nick Jensen) Solution: Compute the syntax highlight attribute much earlier. (closes #5057)
* patch 8.1.1986: more functions can be used as methodsv8.1.1986Bram Moolenaar2019-09-041-9/+11
| | | | | Problem: More functions can be used as methods. Solution: Make textprop functions usable as a method.
* patch 8.1.1844: buffer no longer unloaded when adding text propertiesv8.1.1844Bram Moolenaar2019-08-131-0/+22
| | | | | Problem: Buffer no longer unloaded when adding text properties to it. Solution: Do not create the memfile. (closes #4808)
* patch 8.1.1603: crash when using unknown highlighting in text propertyv8.1.1603Bram Moolenaar2019-06-281-0/+11
| | | | | Problem: Crash when using unknown highlighting in text property. Solution: Check for zero highlight ID.
* patch 8.1.1573: textprop test fails if screenhots do not workv8.1.1573Bram Moolenaar2019-06-191-0/+4
| | | | | Problem: Textprop test fails if screenhots do not work. Solution: Add check for screenhots working.
* patch 8.1.1571: textprop highlight starts too early if just after a tabv8.1.1571Bram Moolenaar2019-06-191-0/+20
| | | | | Problem: textprop highlight starts too early if just after a tab. Solution: Check if still drawing a previous character. (closes #4558)
* patch 8.1.1544: some balloon tests don't run when they canv8.1.1544Bram Moolenaar2019-06-151-3/+2
| | | | | | | 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.
* patch 8.1.1524: tests are silently skippedv8.1.1524Bram Moolenaar2019-06-131-1/+1
| | | | | Problem: Tests are silently skipped. Solution: Throw an exception for skipped tests in more places.
* patch 8.1.1483: skipped tests are not properly listedv8.1.1483Bram Moolenaar2019-06-061-2/+2
| | | | | Problem: Skipped tests are not properly listed. Solution: Throw a "Skipped" exception instead of using ":finish" or ":return".
* patch 8.1.1395: saving for undo may access invalid memoryv8.1.1395Bram Moolenaar2019-05-251-0/+9
| | | | | Problem: Saving for undo may access invalid memory. (Dominique Pelle) Solution: Set ml_line_len also when returning a constant string.
* patch 8.1.1388: errors when calling prop_remove() for an unloaded bufferv8.1.1388Bram Moolenaar2019-05-241-2/+22
| | | | | | 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-0/+8
| | | | | | 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.1359: text property wrong after :substitute with backslashv8.1.1359Bram Moolenaar2019-05-191-0/+19
| | | | | | 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-0/+13
| | | | | 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-1/+50
| | | | | 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/+12
| | | | | 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-1/+1
| | | | | 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-4/+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-0/+61
| | | | | | 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.1276: cannot combine text properties with syntax highlightingv8.1.1276Bram Moolenaar2019-05-051-2/+15
| | | | | Problem: Cannot combine text properties with syntax highlighting. Solution: Add the "combine" field to prop_type_add(). (closes #4343)
* patch 8.1.1035: prop_remove() second argument is not optionalv8.1.1035Bram Moolenaar2019-03-221-8/+44
| | | | | Problem: prop_remove() second argument is not optional. Solution: Fix argument count. Use "buf" instead of "curbuf". (closes #4147)