summaryrefslogtreecommitdiff
path: root/src/drawline.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 9.0.0725: virtual text "after" wraps to next line when 'wrap' is offv9.0.0725Bram Moolenaar2022-10-111-3/+5
| | | | | | Problem: Virtual text "after" wraps to next line even when 'wrap' is off and 'list' is set. Solution: Do not use the minimum width when 'wrap' is off. (issue #11336)
* patch 9.0.0723: extra empty line below virtual text when 'list' is setv9.0.0723Bram Moolenaar2022-10-111-2/+2
| | | | | Problem: Extra empty line below virtual text when 'list' is set. Solution: Do not reset lcs_eol_one but set text_prop_follows. (closes #11339)
* patch 9.0.0722: virtual text "after" does not show with 'list' setv9.0.0722Bram Moolenaar2022-10-111-3/+7
| | | | | | Problem: Virtual text "after" does not show with 'list' set. Solution: Do not break out of the loop when another text prop follows. (closes #11337)
* patch 9.0.0721: virtual text "above" with padding not displayed correctlyv9.0.0721Bram Moolenaar2022-10-111-2/+2
| | | | | Problem: Virtual text "above" with padding not displayed correctly. Solution: Take padding into account when truncating. (closes #11340)
* patch 9.0.0718: extra empty line between two virtual text "below"v9.0.0718Bram Moolenaar2022-10-101-2/+2
| | | | | | | Problem: Extra empty line between two virtual text "below" when 'wrap' and 'number' are set. Solution: Reset "before" when there is no text in the screen line. (closes #11334)
* patch 9.0.0717: compiler warning for unused variable in tiny buildv9.0.0717Bram Moolenaar2022-10-101-0/+4
| | | | | Problem: Compiler warning for unused variable in tiny build. Solution: Add #ifdefs.
* patch 9.0.0716: with 'nowrap' virtual text "after" does not scroll leftv9.0.0716Bram Moolenaar2022-10-101-5/+48
| | | | | | Problem: With 'nowrap' virtual text "after" does not scroll left. Solution: Skip part of the virtual text that is left of the window. (closes #11320) Fix going beyond the last column of the window.
* patch 9.0.0714: with 'nowrap' two virtual text below not displayed correctlyv9.0.0714Bram Moolenaar2022-10-101-3/+14
| | | | | | Problem: With 'nowrap' two virtual text below not displayed correctly. Solution: Set text_prop_follows before continuing. Correct for number column. (closes #11333)
* patch 9.0.0709: virtual text "after" not correct with 'nowrap'v9.0.0709Bram Moolenaar2022-10-091-8/+13
| | | | | | Problem: Virtual text "after" not correct with 'nowrap'. Solution: Do not display "after" text prop on the next line when 'wrap' is off.
* patch 9.0.0705: virtual text truncation does not take padding into accountv9.0.0705Bram Moolenaar2022-10-091-2/+5
| | | | | Problem: Virtual text truncation does not take padding into account. Solution: Subtract the padding from the available space. (closes #11318)
* patch 9.0.0691: lalloc(0) error in listchars testv9.0.0691Bram Moolenaar2022-10-081-36/+43
| | | | | Problem: lalloc(0) error in listchars test. Solution: Skip generating text for tab if tab_len is zero.
* patch 9.0.0690: buffer size for expanding tab not correctly computedv9.0.0690Bram Moolenaar2022-10-081-2/+3
| | | | | Problem: Buffer size for expanding tab not correctly computed. Solution: Correctly use size of end character.
* patch 9.0.0681: "<<<" shows for 'smoothscroll' even when 'showbreak is setv9.0.0681Bram Moolenaar2022-10-061-2/+7
| | | | | Problem: "<<<" shows for 'smoothscroll' even when 'showbreak is set. Solution: When 'showbreak' is set do not display "<<<".
* patch 9.0.0680: tests failing with 'breakindent', 'number' and "n" in 'cpo'v9.0.0680Bram Moolenaar2022-10-061-1/+7
| | | | | Problem: Tests failing with 'breakindent', 'number' and "n" in 'cpo'. Solution: Do count the number column in topline if 'breakindent' is set.
* patch 9.0.0679: tests failing with 'smoothscroll', 'number' and "n" in 'cpo'v9.0.0679Bram Moolenaar2022-10-061-2/+4
| | | | | Problem: Tests failing with 'smoothscroll', 'number' and "n" in 'cpo'. Solution: Do not count number column in topline if columns are skipped.
* patch 9.0.0677: breakindent test accepts wrong resultv9.0.0677Bram Moolenaar2022-10-061-4/+3
| | | | | Problem: Breakindent test accepts wrong result. Solution: Fix the number column and adjust the expected text.
* patch 9.0.0662: concealed characters do not work correctlyv9.0.0662Bram Moolenaar2022-10-041-2/+2
| | | | | Problem: Concealed characters do not work correctly. Solution: Subtract boguscols instead of adding them. (closes #11273)
* patch 9.0.0657: too many #ifdefsv9.0.0657Martin Tournoij2022-10-041-7/+1
| | | | | | Problem: Too many #ifdefs. Solution: Graduate the +cmdwin feature. Now the tiny and small builds are equal, drop the small build. (Martin Tournoij, closes #11268)
* patch 9.0.0652: 'smoothscroll' not tested with 'number' and "n" in 'cpo'v9.0.0652Bram Moolenaar2022-10-031-2/+3
| | | | | Problem: 'smoothscroll' not tested with 'number' and "n" in 'cpo'. Solution: Add tests, fix uncovered problem.
* patch 9.0.0651: build fails without the +conceal featurev9.0.0651Bram Moolenaar2022-10-031-1/+1
| | | | | Problem: Build fails without the +conceal feature. Solution: Rename called function.
* patch 9.0.0649: no indication the first line is broken for 'smoothscroll'v9.0.0649Bram Moolenaar2022-10-031-9/+32
| | | | | Problem: No indication when the first line is broken for 'smoothscroll'. Solution: Show "<<<" in the first line.
* patch 9.0.0642: breakindent test failsv9.0.0642Bram Moolenaar2022-10-021-1/+1
| | | | | Problem: Breakindent test fails. Solution: Correct logic for resetting need_showbreak.
* patch 9.0.0640: cannot scroll by screen line if a line wrapsv9.0.0640Bram Moolenaar2022-10-021-8/+8
| | | | | | Problem: Cannot scroll by screen line if a line wraps. Solution: Add the 'smoothscroll' option. Only works for CTRL-E and CTRL-Y so far.
* patch 9.0.0590: after exiting Insert mode spelling not checked in next linev9.0.0590Bram Moolenaar2022-09-251-4/+1
| | | | | | | Problem: After exiting Insert mode spelling is not checked in the next line. Solution: When spelling is enabled redraw the next line after exiting Insert mode in case the spell highlight needs updating.
* patch 9.0.0534: line number is displayed at virtual text "above"v9.0.0534Bram Moolenaar2022-09-211-47/+62
| | | | | Problem: Line number is displayed at virtual text "above". Solution: Show the line number at the text line.
* patch 9.0.0533: the win_line() function is much too longv9.0.0533Bram Moolenaar2022-09-211-89/+100
| | | | | Problem: The win_line() function is much too long. Solution: Move code to separate functions.
* patch 9.0.0531: the win_line() function is much too longv9.0.0531Bram Moolenaar2022-09-211-156/+178
| | | | | Problem: The win_line() function is much too long. Solution: Move code to separate functions.
* patch 9.0.0527: long sign text may overflow bufferv9.0.0527Bram Moolenaar2022-09-211-5/+7
| | | | | Problem: Long sign text may overflow buffer. Solution: Use a larger buffer. Prevent for overflow.
* patch 9.0.0523: more compiler warnings for arguments in small versionv9.0.0523Bram Moolenaar2022-09-201-1/+8
| | | | | Problem: more compiler warnings for arguments in small version Solution: Adjust #ifdefs.
* patch 9.0.0521: compiler warns for unused argument in small versionv9.0.0521Bram Moolenaar2022-09-201-1/+1
| | | | | Problem: Compiler warns for unused argument in small version. Solution: Add UNUSED.
* patch 9.0.0519: the win_line() function is much too longv9.0.0519Bram Moolenaar2022-09-201-187/+189
| | | | | Problem: The win_line() function is much too long. Solution: Move the code to draw the line number to a separate function.
* patch 9.0.0518: virtual text highlight starts too early with 'nowrap'v9.0.0518Bram Moolenaar2022-09-201-4/+8
| | | | | | Problem: Virtual text highlight starts too early with 'nowrap' and 'number' set. Solution: Add the offset to the attribute skip count. (issue #11138)
* patch 9.0.0516: virtual text "above" highlights gap after itv9.0.0516Bram Moolenaar2022-09-201-1/+1
| | | | | Problem: Virtual text "above" highlights gap after it. Solution: Do not highlight the gap. (closes #11138)
* patch 9.0.0515: virtual text highlight starts too early when 'number' is setv9.0.0515Bram Moolenaar2022-09-201-0/+3
| | | | | Problem: Virtual text highlight starts too early when 'number' is set. Solution: Set column offset when wrapping. (issue #11138)
* patch 9.0.0472: virtual text "below" doesn't show in list modev9.0.0472Bram Moolenaar2022-09-151-0/+5
| | | | | Problem: Virtual text "below" doesn't show in list mode. Solution: Reset lcs_eol_one when displaying text property.
* patch 9.0.0452: Visual highlighting extends into virtual text propv9.0.0452Bram Moolenaar2022-09-121-1/+8
| | | | | | Problem: Visual highlighting extends into virtual text prop. Solution: Do not highlight what isn't actually selected. Fix ordering of stored text props.
* patch 9.0.0451: virtual text "above" does not work with 'nowrap'v9.0.0451Bram Moolenaar2022-09-121-6/+11
| | | | | Problem: Virtual text "above" does not work with 'nowrap'. Solution: Do wrap the line after. (closes #11084)
* patch 9.0.0442: virtual text "above" doesn't handel line numbersv9.0.0442Bram Moolenaar2022-09-111-3/+5
| | | | | | Problem: Virtual text "above" doesn't handel line numbers. Solution: Take the left column offset into account. (issue #11084) Also make padding work.
* patch 9.0.0438: cannot put virtual text above a linev9.0.0438Bram Moolenaar2022-09-101-36/+86
| | | | | Problem: Cannot put virtual text above a line. Solution: Add the "above" value for "text_align".
* patch 9.0.0357: 'linebreak' interferes with text property highlightv9.0.0357Bram Moolenaar2022-09-021-1/+6
| | | | | | | Problem: 'linebreak' interferes with text property highlight if there is syntax highlighting. Solution: Check the text prop attributes after combining with syntax attributes. (closes #11035)
* patch 9.0.0297: cursor position wrong after right aligned virtual textv9.0.0297Bram Moolenaar2022-08-281-2/+4
| | | | | | | 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.
* patch 9.0.0247: cannot add padding to virtual text without highlightv9.0.0247Bram Moolenaar2022-08-231-132/+146
| | | | | Problem: Cannot add padding to virtual text without highlight. Solution: Add the "text_padding_left" argument. (issue #10906)
* patch 9.0.0243: text properties "below" sort differently on MS-Windowsv9.0.0243Bram Moolenaar2022-08-221-1/+6
| | | | | Problem: Text properties "below" sort differently on MS-Windows. Solution: Use the ID as a tie breaker. (closes #10958)
* patch 9.0.0210: 'list' mode does not work properly with virtual textv9.0.0210Bram Moolenaar2022-08-141-11/+22
| | | | | Problem: 'list' mode does not work properly with virtual text. Solution: Show the "$" at the right position. (closes #10913)
* patch 9.0.0209: build error with small featuresv9.0.0209Bram Moolenaar2022-08-141-1/+5
| | | | | Problem: Build error with small features. Solution: Add #ifdef.
* patch 9.0.0208: the override flag has no effect for virtual textv9.0.0208Bram Moolenaar2022-08-141-6/+13
| | | | | Problem: The override flag has no effect for virtual text. (Ben Jackson) Solution: Make the override flag work. (closes #10915)
* patch 9.0.0201: CursorLine highlight overrules virtual text highlightv9.0.0201Bram Moolenaar2022-08-131-2/+3
| | | | | Problem: CursorLine highlight overrules virtual text highlight. Solution: Let extra attribute overrule line attribute. (closes #10909)
* patch 9.0.0193: search and match highlgith interfere with virtual textv9.0.0193Bram Moolenaar2022-08-111-41/+49
| | | | | | | | Problem: Search and match highlgith interfere with virtual text highlight. (Ben Jackson) Solution: Check for match highlight after text properties. Reset and restore search highlight when showing virtual text. (closes #10892)
* patch 9.0.0189: invalid memory access for text prop without highlightv9.0.0189Bram Moolenaar2022-08-101-1/+2
| | | | | Problem: Invalid memory access for text prop without highlight. Solution: Check for a valid highlight ID.
* patch 9.0.0186: virtual text without highlighting does not showv9.0.0186Bram Moolenaar2022-08-101-1/+2
| | | | | | Problem: Virtual text without highlighting does not show. (Ben Jackson) Solution: Use a text property when it has highlighting or when it has text. (closes #10878)