Dominique Pelle
e764d1b421
patch 9.0.1403: unused variables and functions
...
Problem: Unused variables and functions.
Solution: Delete items and adjust #ifdefs. (Dominique Pellé, closes #12145 )
2023-03-12 21:20:59 +00:00
Bram Moolenaar
5fb78c3fa5
patch 9.0.1380: CTRL-X on 2**64 subtracts two
...
Problem: CTRL-X on 2**64 subtracts two. (James McCoy)
Solution: Correct computation for large number. (closes #12103 )
2023-03-04 20:47:39 +00:00
Yegappan Lakshmanan
a23a11b5bf
patch 9.0.1336: functions without arguments are not always declared properly
...
Problem: Functions without arguments are not always declared properly.
Solution: Use "(void)" instead of "()". (Yegappan Lakshmanan, closes #12031 )
2023-02-21 14:27:41 +00:00
Bram Moolenaar
ea62cee85e
patch 9.0.1327: cursor in wrong position below line with virtual text below
...
Problem: Cursor in wrong position below line with virtual text below ending
in multi-byte character.
Solution: When checking for last character take care of multi-byte
character.
2023-02-19 18:36:41 +00:00
cero1988
1d87e11a1e
patch 9.0.1314: :messages behavior depends on 'fileformat' of current buffer
...
Problem: :messages behavior depends on 'fileformat' of current buffer.
Solution: Pass the buffer pointer to where it is used. (Mirko Ceroni,
closes #11995 )
2023-02-16 15:03:12 +00:00
Bram Moolenaar
55a27d8ea7
patch 9.0.1305: cursor in wrong line with virtual text above
...
Problem: Cursor in wrong line with virtual text above.
Solution: Count extra line for text property above/below. (closes #11959 )
2023-02-12 18:03:57 +00:00
Bram Moolenaar
9d9a20ee87
patch 9.0.1301: virtual text below empty line not displayed
...
Problem: Virtual text below empty line not displayed.
Solution: Adjust flags and computations. (closes #11959 )
2023-02-11 13:49:01 +00:00
Bram Moolenaar
a9a6b0323e
patch 9.0.1285: various small problems
...
Problem: Various small problems.
Solution: Adjust white space and comments.
2023-02-05 18:00:42 +00:00
Yegappan Lakshmanan
1cfb14aa97
patch 9.0.1166: code is indented more than necessary
...
Problem: Code is indented more than necessary.
Solution: Use an early return where it makes sense. (Yegappan Lakshmanan,
closes #11792 )
2023-01-09 19:04:23 +00:00
Bram Moolenaar
4ce1f99a2d
patch 9.0.1077: can add text property with negative ID before virtual text
...
Problem: Can add text property with negative ID before virtual text
property.
Solution: Remember that a text property with a negative ID was used and give
an appropriate error message. (closes #11725 )
Fix index computation.
2022-12-19 13:31:06 +00:00
Bram Moolenaar
56a40fea9c
patch 9.0.1019: 'smoothscroll' and virtual text above don't work together
...
Problem: 'smoothscroll' and virtual text above don't work together.
(Yee Cheng Chin)
Solution: Skip virtual text above when w_skipcol is non-zero.
(closes #11665 )
2022-12-06 14:17:57 +00:00
Bram Moolenaar
89469d157a
patch 9.0.0993: display errors when adding or removing text property type
...
Problem: Display errors when adding or removing text property type.
Solution: Perform a full redraw. Only use text properties for which the
type is defined. (closes #11655 )
2022-12-02 20:46:26 +00:00
dundargoc
c57b5bcd22
patch 9.0.0828: various typos
...
Problem: Various typos.
Solution: Correct typos. (closes #11432 )
2022-11-02 13:30:51 +00:00
Bram Moolenaar
c9121f798f
patch 9.0.0751: 'scrolloff' does not work well with 'smoothscroll'
...
Problem: 'scrolloff' does not work well with 'smoothscroll'.
Solution: Make positioning the cursor a bit better. Rename functions.
2022-10-14 20:09:04 +01:00
Martin Tournoij
ba43e76fcd
patch 9.0.0747: too many #ifdefs
...
Problem: Too many #ifdefs.
Solution: Gradudate the +cmdline_info feature. (Martin Tournoij,
closes #11330 )
2022-10-13 22:12:15 +01:00
Bram Moolenaar
f167c7b424
patch 9.0.0709: virtual text "after" not correct with 'nowrap'
...
Problem: Virtual text "after" not correct with 'nowrap'.
Solution: Do not display "after" text prop on the next line when 'wrap' is
off.
2022-10-09 21:53:58 +01:00
Bram Moolenaar
4c7fd4d68f
patch 9.0.0488: cursor wrong with virtual text "above" and 'showbreak'
...
Problem: Cursor in wrong position with virtual text "above" and
'showbreak'.
Solution: Take the first character column into account. (closes #11149 )
2022-09-17 17:15:33 +01:00
Bram Moolenaar
702bd6c7c6
patch 9.0.0464: with virtual text "above" indenting doesn't work well
...
Problem: With virtual text "above" indenting doesn't work well.
Solution: Ignore text properties while adjusting indent. (issue #11084 )
2022-09-14 16:09:57 +01:00
Bram Moolenaar
88b79cb7d4
patch 9.0.0439: cursor wrong if inserting before line with virtual text above
...
Problem: Cursor wrong if inserting before line with virtual text above.
Solution: Add the width of the "above" virtual text to the cursor position.
(issue #11084 )
2022-09-10 22:32:14 +01:00
Bram Moolenaar
04e0ed1ddf
patch 9.0.0438: cannot put virtual text above a line
...
Problem: Cannot put virtual text above a line.
Solution: Add the "above" value for "text_align".
2022-09-10 20:00:56 +01:00
Bram Moolenaar
e5a420fb33
patch 9.0.0412: compiler warning for unused argument
...
Problem: Compiler warning for unused argument.
Solution: Add UNUSED.
2022-09-07 21:46:56 +01:00
Bram Moolenaar
d7633114af
patch 9.0.0410: struct member cts_lnum is unused
...
Problem: Struct member cts_lnum is unused.
Solution: Delete it.
2022-09-07 20:01:17 +01:00
Bram Moolenaar
c8bf59e9b2
patch 9.0.0297: cursor position wrong after right aligned virtual text
...
Problem: Cursor position wrong after right aligned virtual text. (Iizuka
Masashi)
Solution: Take the width of the column offset into account. (closes #10997 )
Also fix virtual text positioning.
2022-08-28 16:39:22 +01:00
Bram Moolenaar
f396ce83ee
patch 9.0.0247: cannot add padding to virtual text without highlight
...
Problem: Cannot add padding to virtual text without highlight.
Solution: Add the "text_padding_left" argument. (issue #10906 )
2022-08-23 18:39:37 +01:00
Bram Moolenaar
c3a483fc3c
patch 9.0.0210: 'list' mode does not work properly with virtual text
...
Problem: 'list' mode does not work properly with virtual text.
Solution: Show the "$" at the right position. (closes #10913 )
2022-08-14 19:37:36 +01:00
Bram Moolenaar
28c9f89571
patch 9.0.0205: cursor in wrong position when inserting after virtual text
...
Problem: Cursor in wrong position when inserting after virtual text. (Ben
Jackson)
Solution: Put the cursor after the virtual text, where the text will be
inserted. (closes #10914 )
2022-08-14 13:28:55 +01:00
Bram Moolenaar
f0ccfa474a
patch 9.0.0199: cursor position wrong with two right-aligned virtual texts
...
Problem: Cursor position wrong with two right-aligned virtual texts.
Solution: Add the padding for right-alignment. (issue #10906 )
2022-08-13 16:41:19 +01:00
Bram Moolenaar
49a90792d9
patch 9.0.0179: cursor pos wrong with wrapping virtual text in empty line
...
Problem: Cursor position wrong with wrapping virtual text in empty line.
Solution: Adjust handling of an empty line. (closes #10875 )
2022-08-09 18:25:23 +01:00
Bram Moolenaar
e428fa04a7
patch 9.0.0178: cursor position wrong with virtual text before Tab
...
Problem: Cursor position wrong with virtual text before Tab.
Solution: Use the byte length, not the cell with, to compare the column.
Correct tab size after text prop. (closes #10866 )
2022-08-09 16:55:41 +01:00
Bram Moolenaar
25463610df
patch 9.0.0168: cursor positioned wrong with two virtual text properties
...
Problem: Cursor positioned wrong with two virtual text properties close
together. (Ben Jackson)
Solution: Add the original size, not the computed one. (closes #10864 )
2022-08-08 11:07:47 +01:00
Bram Moolenaar
cba6952e34
patch 9.0.0157: 'showbreak' displayed below truncated "after" text prop
...
Problem: 'showbreak' displayed below truncated "after" text prop.
Solution: Suppress 'showbreak' when "after" prop doesn't wrap.
2022-08-06 21:03:53 +01:00
Bram Moolenaar
50e75fe8d8
patch 9.0.0147: cursor positioned wrong after two "below" text properties
...
Problem: Cursor positioned wrong after two text properties with virtual
text and "below" alignment. (Tim Pope)
Solution: Do not stop after a text property using MAXCOL. (closes #10849 )
2022-08-05 20:25:50 +01:00
Bram Moolenaar
afd2aa79ed
patch 9.0.0143: cursor positioned after virtual text in empty line
...
Problem: Cursor positioned after virtual text in empty line.
Solution: Keep cursor in the first column. (closes #10786 )
2022-08-05 13:07:23 +01:00
Bram Moolenaar
2f83cc4cfa
patch 9.0.0142: crash when adding and removing virtual text
...
Problem: Crash when adding and removing virtual text. (Ben Jackson)
Solution: Check that the text of the text property still exists.
2022-08-05 11:45:17 +01:00
Bram Moolenaar
398649ee44
patch 9.0.0139: truncating virtual text after a line not implemented
...
Problem: Truncating virtual text after a line not implemented.
Cursor positioning wrong with Newline in the text.
Solution: Implement truncating. Disallow control characters in the text.
(closes #10842 )
2022-08-04 15:03:48 +01:00
Bram Moolenaar
bc49c5f48f
patch 9.0.0138: not enough characters accepted for 'spellfile'
...
Problem: Not enough characters accepted for 'spellfile'.
Solution: Add vim_is_fname_char() and use it for 'spellfile'.
2022-08-04 13:01:48 +01:00
Bram Moolenaar
09ff4b54fb
patch 9.0.0132: multi-byte characters in virtual text not handled correctly
...
Problem: Multi-byte characters in virtual text not handled correctly.
Solution: Count screen cells instead of bytes.
2022-08-01 16:51:02 +01:00
Bram Moolenaar
3f79b61288
patch 9.0.0128: Coverity complains about possible double free
...
Problem: Coverity complains about possible double free.
Solution: Clear the pointer to avoid warnings.
2022-08-01 12:06:40 +01:00
Bram Moolenaar
84b247fab7
patch 9.0.0125: cursor positioned wrong with virtual text after the line
...
Problem: Cursor positioned wrong with virtual text after the line.
Solution: Clear cts_with_trailing.
2022-08-01 11:17:40 +01:00
Bram Moolenaar
c146d974f1
patch 9.0.0123: cannot build with small features
...
Problem: Cannot build with small features.
Solution: Add #ifdef.
2022-07-31 18:03:57 +01:00
Bram Moolenaar
be33e5e4a9
patch 9.0.0122: breakindent test fails
...
Problem: Breakindent test fails.
Solution: Fix condition.
2022-07-31 18:00:10 +01:00
Bram Moolenaar
b7963df98f
patch 9.0.0121: cannot put virtual text after or below a line
...
Problem: Cannot put virtual text after or below a line.
Solution: Add "text_align" and "text_wrap" arguments.
2022-07-31 17:12:43 +01:00
Mike Williams
0494789ece
patch 9.0.0080: compiler warning for size_t to int conversion
...
Problem: Compiler warning for size_t to int conversion.
Solution: Add type casts. (Mike Williams, closes #10795 )
2022-07-26 16:03:42 +01:00
Bram Moolenaar
34a1f77979
patch 9.0.0074: Coverity warns for double free
...
Problem: Coverity warns for double free.
Solution: Reset cts_text_prop_count when freeing cts_text_props.
2022-07-26 11:20:48 +01:00
Bram Moolenaar
fe3fb6e1e6
patch 9.0.0068: build fails with tiny features
...
Problem: Build fails with tiny features.
Solution: Add #ifdef.
2022-07-25 18:35:15 +01:00
Bram Moolenaar
7f9969c559
patch 9.0.0067: cannot show virtual text
...
Problem: Cannot show virtual text.
Solution: Initial changes for virtual text support, using text properties.
2022-07-25 18:13:54 +01:00
Bram Moolenaar
338bf58eba
patch 8.2.5004: right shift on negative number does not work as documented
...
Problem: Right shift on negative number does not work as documented.
Solution: Use a uvarnumber_T type cast.
2022-05-22 20:16:32 +01:00
Bram Moolenaar
8e145b8246
patch 8.2.4993: smart/C/lisp indenting is optional
...
Problem: smart/C/lisp indenting is optional, which makes the code more
complex, while it only reduces the executable size a bit.
Solution: Graduate FEAT_CINDENT, FEAT_SMARTINDENT and FEAT_LISP.
2022-05-21 20:17:31 +01:00
Bram Moolenaar
249591057b
patch 8.2.4911: the mode #defines are not clearly named
...
Problem: The mode #defines are not clearly named.
Solution: Prepend MODE_. Renumber them to put the mapped modes first.
2022-05-07 20:01:16 +01:00
=?UTF-8?q?Dundar=20G=C3=B6c?=
f01a653ac5
patch 8.2.4531: LGTM warnings for condition and buffer size
...
Problem: LGTM warnings for condition always true and buffer size too small.
Solution: Remove the useless condition. Make the buffer larger. (Goc
Dundar, closes #9914 )
2022-03-09 13:00:54 +00:00