summaryrefslogtreecommitdiff
path: root/src/drawline.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.2.5076: unnecessary codev8.2.5076zeertzjq2022-06-101-4/+5
| | | | | Problem: Unnecessary code. Solution: Remove code and replace with function call. (closes #10552)
* patch 8.2.5066: timer_create is not available on every Mac systemv8.2.5066Bram Moolenaar2022-06-071-3/+20
| | | | | | Problem: Timer_create is not available on every Mac system. (Hisashi T Fujinaka) Solution: Adjust #ifdef.
* patch 8.2.4918: conceal character from matchadd() displayed too many timesv8.2.4918LemonBoy2022-05-081-3/+5
| | | | | Problem: Conceal character from matchadd() displayed too many times. Solution: Check the syntax flag. (closes #10381, closes #7268)
* patch 8.2.4911: the mode #defines are not clearly namedv8.2.4911Bram Moolenaar2022-05-071-2/+2
| | | | | Problem: The mode #defines are not clearly named. Solution: Prepend MODE_. Renumber them to put the mapped modes first.
* patch 8.2.4614: redrawing too much when 'cursorline' is setv8.2.4614zeertzjq2022-03-231-6/+1
| | | | | | Problem: Redrawing too much when 'cursorline' is set and jumping around. Solution: Rely on win_update() to redraw the current and previous cursor line, do not mark lines as modified. (closes #9996)
* patch 8.2.4610: some conditions are always truev8.2.4610Bram Moolenaar2022-03-221-2/+1
| | | | | Problem: Some conditions are always true. Solution: Remove the useless conditions. (closes #9993)
* patch 8.2.4557: confusing comment about 'cursorlineopt'v8.2.4557zeertzjq2022-03-131-3/+3
| | | | | | Problem: Confusing comment about 'cursorlineopt'. Solution: Adjust comment. (closes #9939) Add parenthesis around logical OR.
* patch 8.2.4521: build failure without the +diff featurev8.2.4521Bram Moolenaar2022-03-061-9/+4
| | | | | Problem: Build failure without the +diff feature. (John Marriott) Solution: Define filler+lines if not declaring it.
* patch 8.2.4520: using wrong highlight for cursor line numberv8.2.4520Bram Moolenaar2022-03-061-2/+3
| | | | | | Problem: Using wrong highlight for cursor line number. Solution: Take filler lines into account when using CursorLineNr. (closes #9897)
* patch 8.2.4470: Coverity warns for uninitialized variablev8.2.4470Bram Moolenaar2022-02-251-1/+1
| | | | | Problem: Coverity warns for uninitialized variable. Solution: Set can_spell to zero.
* patch 8.2.4402: missing parenthesis may cause unexpected problemsv8.2.4402kylo2522022-02-161-7/+7
| | | | | Problem: Missing parenthesis may cause unexpected problems. Solution: Add more parenthesis is macros. (closes #9788)
* patch 8.2.4255: theoretical computation overflowv8.2.4255=?UTF-8?q?Dundar=20G=C3=B6c?=2022-01-291-1/+1
| | | | | Problem: Theoretical computation overflow. Solution: Perform multiplication in a wider type. (closes #9657)
* patch 8.2.4241: some type casts are redundantv8.2.4241=?UTF-8?q?Dundar=20G=C3=B6c?=2022-01-281-4/+4
| | | | | Problem: Some type casts are redundant. Solution: Remove the type casts. (closes #9643)
* patch 8.2.4062: match highlighting of tab too shortv8.2.4062Bram Moolenaar2022-01-111-2/+3
| | | | | | Problem: Match highlighting of tab too short. Solution: Do not stop match highlighting if on a Tab. (Christian Brabandt, closes #9507, closes #9500)
* patch 8.2.3914: various spelling mistakes in commentsv8.2.3914Dominique Pelle2021-12-271-2/+2
| | | | | Problem: Various spelling mistakes in comments. Solution: Fix the mistakes. (Dominique Pellé, closes #9416)
* patch 8.2.3874: cannot highlight the number column for a signv8.2.3874James McCoy2021-12-221-0/+7
| | | | | Problem: Cannot highlight the number column for a sign. Solution: Add the "numhl" argument. (James McCoy, closes #9381)
* patch 8.2.3723: when using 'linebreak' a text property starts too earlyv8.2.3723Bram Moolenaar2021-12-021-0/+5
| | | | | Problem: When using 'linebreak' a text property starts too early. Solution: Decrement "bcol" when looking for property start. (closes #9242)
* patch 8.2.3718: compiler warns for unused variable without +textpropv8.2.3718Bram Moolenaar2021-12-021-3/+6
| | | | | | Problem: Compiler warns for unused variable without the +textprop feature. (John Marriott) Solution: Adjust #ifdefs.
* patch 8.2.3706: text property highlighting is used on Tabv8.2.3706Bram Moolenaar2021-11-301-1/+1
| | | | | Problem: Text property highlighting is used on Tab. Solution: Only set in_linebreak when not on a Tab. (closes #9242)
* patch 8.2.3700: text property highlighting continues over breakindentv8.2.3700Bram Moolenaar2021-11-291-1/+19
| | | | | Problem: Text property highlighting continues over breakindent. Solution: Stop before the end column. (closes #9242)
* patch 8.2.3698: match highlighting continues over breakindentv8.2.3698Bram Moolenaar2021-11-291-1/+7
| | | | | Problem: Match highlighting continues over breakindent. Solution: Stop before the end column. (closes #9242)
* patch 8.2.3664: cannot adjust sign highlighting for 'cursorline'v8.2.3664Bram Moolenaar2021-11-241-4/+27
| | | | | | Problem: Cannot adjust sign highlighting for 'cursorline'. Solution: Add CursorLineSign and CursorLineFold highlight groups. (Gregory Anders, closes #9201)
* patch 8.2.3424: a sequence of spaces is hard to see in list modev8.2.3424zeertzjq2021-09-101-3/+20
| | | | | Problem: A sequence of spaces is hard to see in list mode. Solution: Add the "multispace" option to 'listchars'. (closes #8834)
* patch 8.2.3410: crash with linebreak, listchars and large tabstopv8.2.3410Bram Moolenaar2021-09-071-31/+36
| | | | | Problem: Crash with linebreak, listchars and large tabstop. Solution: Account for different size listchars for a tab. (closes #8841)
* patch 8.2.3391: crash with combination of 'linebreak' and other optionsv8.2.3391Bram Moolenaar2021-08-311-3/+8
| | | | | | Problem: Crash with combination of 'linebreak' and other options. Solution: Avoid n_extra to become negative. (Christian Brabandt, closes #8817)
* patch 8.2.3295: 'cursorline' should not apply to 'breakindent'v8.2.3295zeertzjq2021-08-051-19/+13
| | | | | | Problem: 'cursorline' should not apply to 'breakindent'. Solution: Make 'cursorline' apply to 'breakindent' and 'showbreak' consistently. (closes #8684)
* patch 8.2.3121: 'listchars' "exceeds" character appears in foldcolumnv8.2.3121Bram Moolenaar2021-07-081-1/+3
| | | | | | | Problem: 'listchars' "exceeds" character appears in foldcolumn. Window separator is missing. (Leonid V. Fedorenchik) Solution: Only draw the "exceeds" character in the text area. Break the loop when not drawing the text. (closes #8524)
* patch 8.2.3012: when 'rightleft' is set the line number is drawn reversedv8.2.3012Christian Brabandt2021-06-161-2/+3
| | | | | | | Problem: When 'rightleft' is set the line number is sometimes drawn reversed. Solution: Adjust how space is handled. (Christian Brabandt, closes #8389, closes #8391)
* patch 8.2.2903: cursor position wrong on wrapped line with 'signcolumn'v8.2.2903Bram Moolenaar2021-05-291-0/+6
| | | | | | Problem: Cursor position wrong on wrapped line with 'signcolumn'. Solution: Don't add space for showbreak twice. (Christian Brabandt, closes #8262)
* patch 8.2.2797: Search highlight disappears in the Visual areav8.2.2797Bram Moolenaar2021-04-211-0/+3
| | | | | Problem: Search highlight disappears in the Visual area. Solution: Combine the search attributes. (closes #8134)
* patch 8.2.2577: compiler warning for type conversionv8.2.2577Bram Moolenaar2021-03-081-1/+1
| | | | | Problem: Compiler warning for type conversion. Solution: Add a typecast. (Mike Williams)
* patch 8.2.2563: cannot use multibyte characters for folding in 'fillchars'v8.2.2563Bram Moolenaar2021-03-031-4/+3
| | | | | | Problem: Cannot use multibyte characters for folding in 'fillchars'. Solution: Port pull request 11568 to Vim. (Yegappan Lakshmanan, closes #7924)
* patch 8.2.2518: 'listchars' should be window-localv8.2.2518Bram Moolenaar2021-02-151-37/+47
| | | | | | Problem: 'listchars' should be window-local. Solution: Make 'listchars' global-local. (Yegappan Lakshmanan, Marco Hinz, closes #5206, closes #7850)
* patch 8.2.2493: text property for text left of window shows upv8.2.2493Bram Moolenaar2021-02-101-1/+6
| | | | | | Problem: Text property for text left of window shows up. Solution: Check if the text property ends before the current column. (closes #7806)
* patch 8.2.2454: leading space can not be made visiblev8.2.2454Bram Moolenaar2021-02-031-3/+20
| | | | | Problem: Leading space can not be made visible. Solution: Add "lead:" to 'listchars'. (closes #7772)
* patch 8.2.2045: highlighting a character too much with incsearchv8.2.2045Bram Moolenaar2020-11-251-1/+1
| | | | | Problem: Highlighting a character too much with incsearch. Solution: Check "search_match_endcol". (Christian Brabandt, closes #7360)
* patch 8.2.2003: build error with +conceal but without +popupwinv8.2.2003Bram Moolenaar2020-11-171-2/+4
| | | | | Problem: Build error with +conceal but without +popupwin. Solution: Add #ifdef. (Tom Ryder, closes #7316)
* patch 8.2.1990: cursor position wrong in terminal popup with finished jobv8.2.1990Bram Moolenaar2020-11-151-0/+1
| | | | | | Problem: Cursor position wrong in terminal popup with finished job. Solution: Only add the top and left offset when not done already. (closes #7298)
* patch 8.2.1957: diff and cursorcolumn highlighting don't mixv8.2.1957Bram Moolenaar2020-11-051-1/+6
| | | | | | Problem: Diff and cursorcolumn highlighting don't mix. Solution: Fix condition for what attribute to use. (Christian Brabandt, closes #7258, closes #7260)
* patch 8.2.1689: 'colorcolumn' doesn't show in indentv8.2.1689Bram Moolenaar2020-09-151-1/+5
| | | | | | Problem: 'colorcolumn' doesn't show in indent. Solution: Also draw the column when draw_state is WL_BRI or WL_SBR. (Alexey Demin, closes #6948, closes #6619)
* patch 8.2.1556: cursorline highlighting always overrules sign highlightingv8.2.1556Bram Moolenaar2020-08-311-1/+13
| | | | | | Problem: Cursorline highlighting always overrules sign highlighting. Solution: Combine the highlighting, use the priority to decide how. (closes #6812)
* patch 8.2.1058: multiline conceal causes display errorsv8.2.1058Bram Moolenaar2020-06-251-0/+5
| | | | | | Problem: Multiline conceal causes display errors. Solution: Do not allow conceal cross over EOL. (closes #6326, closes #4854, closes #6302)
* patch 8.2.1056: wrong display when mixing match conceal and syntax concealv8.2.1056Bram Moolenaar2020-06-251-4/+5
| | | | | Problem: Wrong display when mixing match conceal and syntax conceal. Solution: Adjust how conceal flags are used. (closes #6327, closes #6303)
* patch 8.2.1004: line numbers below filler lines not always updatedv8.2.1004Bram Moolenaar2020-06-181-3/+3
| | | | | | Problem: Line numbers below filler lines not always updated. Solution: Don't break out of the win_line() loop too early. (Christian Brabandt, closes #6294, closes #6138)
* patch 8.2.0943: displaying ^M or ^J depends on current bufferv8.2.0943Bram Moolenaar2020-06-101-2/+2
| | | | | Problem: Displaying ^M or ^J depends on current buffer. Solution: Pass the displayed buffer to transchar(). (closes #6225)
* patch 8.2.0766: display error when using 'number' and 'breakindent'v8.2.0766Bram Moolenaar2020-05-161-0/+6
| | | | | | Problem: Display error when using 'number' and 'breakindent'. Solution: Adjust extra spaces in the first row. (Ken Takata, closes #6089, closes #5986)
* patch 8.2.0616: build error when disabling the diff featurev8.2.0616Bram Moolenaar2020-04-211-2/+2
| | | | | Problem: Build error when disabling the diff feature. Solution: Move parenthesis outside of #ifdef. (Tom Ryder)
* patch 8.2.0464: typos and other small problemsv8.2.0464Bram Moolenaar2020-03-271-1/+2
| | | | | Problem: Typos and other small problems. Solution: Fix the typos. Add missing files to the distribution.
* patch 8.2.0309: window-local values have confusing namev8.2.0309Bram Moolenaar2020-02-231-3/+3
| | | | | Problem: Window-local values have confusing name. Solution: Rename w_p_bri* to w_briopt_*.
* patch 8.2.0308: 'showbreak' does not work for a very long linev8.2.0308Bram Moolenaar2020-02-231-1/+1
| | | | | | Problem: 'showbreak' does not work for a very long line. (John Little) Solution: Check whether 'briopt' contains "sbr". (Ken Takata, closes #5523, closes #5684)