aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/screen.c
Commit message (Collapse)AuthorAge
* vim-patch:8.1.0126: various problems with 'vartabstop'VVKot2021-03-28
| | | | | | | Problem: Various problems with 'vartabstop'. Solution: Fix memory leak. Fix crash. Add a few more tests. (Christian Brabandt, closes vim/vim#3076) https://github.com/vim/vim/commit/307ac5c68e9e624ab713136d79f35bb73f780d2d
* vim-patch:8.1.0116: display problem with 'vartabstop' and 'linebreak'VVKot2021-03-28
| | | | | | | Problem: Display problem with 'vartabstop' and 'linebreak'. (Chauca Fuentes) Solution: Call tabstop_padding(). (Christian Brabandt, closes vim/vim#3076) https://github.com/vim/vim/commit/a87b72cc316e065d66dcbcf7ec1cde330adef3a3
* vim-patch:8.1.0105: all tab stops are the sameVVKot2021-03-28
| | | | | | | Problem: All tab stops are the same. Solution: Add the variable tabstop feature. (Christian Brabandt, closes vim/vim#2711) https://github.com/vim/vim/commit/04958cbaf25eea27eceedaa987adfb354ad5f7fd
* vim-patch:8.2.2045: highlighting a character too much with incsearchJan Edmund Lazo2021-03-27
| | | | | | Problem: Highlighting a character too much with incsearch. Solution: Check "search_match_endcol". (Christian Brabandt, closes vim/vim#7360) https://github.com/vim/vim/commit/448465e6872905967c97a56cd45307530795653c
* Merge pull request #14194 from bfredl/provide_virtBjörn Linse2021-03-23
|\ | | | | memory error with ephemeral virt_text
| * decorations: memory error with ephemeral virt_textBjörn Linse2021-03-23
| |
* | fix: stop using CursorLineNr in front of fillersMatthieu Coudron2021-03-22
|/ | | | filling lines in diff mode.
* floats: add borders (MS-DOS MODE)Björn Linse2021-03-22
|
* w_grid_alloc: baseline implBjörn Linse2021-03-22
|
* Merge pull request #14020 from chentau/float_resizeBjörn Linse2021-03-14
|\ | | | | Update lines after shrinking floating window
| * screen: make ui_compositor aware of the intended size of a floatchentau2021-03-11
| |
* | Merge pull request #14065 from bfredl/overlaymodeBjörn Linse2021-03-10
|\ \ | | | | | | more virt_text display options
| * | decorations: add additional styling of virt_text overlaysBjörn Linse2021-03-10
| |/
* / vim-patch:8.2.2577: compiler warning for type conversionJan Edmund Lazo2021-03-09
|/ | | | | | | | | | | | | | | | | | | | | | | | | Problem: Compiler warning for type conversion. Solution: Add a typecast. (Mike Williams) https://github.com/vim/vim/commit/9355ae41497cbcce58ddd79f9125eb3e9dfe0a43 N/A patches for version.c: vim-patch:8.1.0783: compiler warning for signed/unsigned Problem: Compiler warning for signed/unsigned. Solution: Add type cast. Change type of buffer. (Ozaki Kiichi, closes vim/vim#3827) https://github.com/vim/vim/commit/63c0ccd2b68ce854f294e6f149cc700c7f543674 Neovim was refactored to prefer char type for string functions, not char_u. vim-patch:8.2.2152: screenpos() does not include the WinBar offset Problem: screenpos() does not include the WinBar offset. Solution: Use W_WINROW() instead of directly using w_window. (closes vim/vim#7487) https://github.com/vim/vim/commit/8dd46e72cfb13b8de793c808ee009c45e881903a W_WINROW() was removed so port only the test changes. The test is currently skipped.
* vim-patch:8.1.1901: the +insert_expand feature is not always availableJan Edmund Lazo2021-03-01
| | | | | | Problem: The +insert_expand feature is not always available. Solution: Graduate the +insert_expand feature. https://github.com/vim/vim/commit/e2c453d38f6512ac4cff7cd26aa7780b4e2534d7
* decorations: allow virt_text overlay at any columnBjörn Linse2021-02-22
|
* vim-patch:8.2.1056: wrong display when mixing match conceal and syntax concealJan Edmund Lazo2021-02-13
| | | | | | Problem: Wrong display when mixing match conceal and syntax conceal. Solution: Adjust how conceal flags are used. (closes vim/vim#6327, closes vim/vim#6303) https://github.com/vim/vim/commit/211dd3fd82216ca879fe7f917ea345b3ae366ce1
* vim-patch:8.2.1058: multiline conceal causes display errorsJan Edmund Lazo2021-02-13
| | | | | | | | | Problem: Multiline conceal causes display errors. Solution: Do not allow conceal cross over EOL. (closes vim/vim#6326, closes vim/vim#4854, closes vim/vim#6302) https://github.com/vim/vim/commit/fc838d6cb0f22c77a6ee2befd034b593e1c5ea06 Port test_conceal.vim but skip tests that require screendumps.
* option: use char* for set_string_option_direct()Jan Edmund Lazo2021-02-07
| | | | | | | "name" param was cast to (const char *). All calls to set_string_option_direct() cast 1st arg from (char *) to (char_u *). Remove these useless casts.
* screen.c: fix an issue with wrap and foldsMatthieu Coudron2021-01-07
| | | | | | Before this commit, a folded line would display a trailing character with bin/nvim -u ~/test.vim --cmd "hi NonText ctermbg=3" --cmd "hi Search ctermbg=2" --cmd "set listchars+=extends:X nowrap list" ~/test.txt
* screen.c: fix last character on foldtextMatthieu Coudron2021-01-06
| | | | | Last character on a folded line was sometimes highlighted with the "Search" highlight. Solves this along with some remaining "curwin".
* screen.c: fix display of signcolumn=auto in diffs (#13688)Matthieu Coudron2021-01-05
| | | | | | | | | | sign_id was not reset when filler lines were involved, thus causing a bad alignment between columns. You could check that before this commit, bin/nvim -u NORC --cmd "setglobal signcolumn=yes:4" --cmd "set diffopt+=foldcolumn:0" -d ../test1.txt ../test2.txt would result in an irregular column width.
* Revert "vim-patch:8.1.0822: peeking and flushing output slows down execution"Jan Edmund Lazo2020-12-31
| | | | This reverts commit 0519a75f6eca1065a4d0184f99c71ae03a99b9b1.
* Revert "vim-patch:8.1.1192: mode is not cleared when leaving Insert mode ↵Jan Edmund Lazo2020-12-31
| | | | | | | | with mapped Esc" This reverts commit 44bb7147e40743d9a70ee3a2663a7a7dacec7b13. Avoid regression mentioned in https://github.com/neovim/neovim/commit/c64cce906e7ed828d331e1786c985ff7aa734546#commitcomment-45554271
* fix(fold): highlight even in folds (#13643)Matthieu Coudron2020-12-30
|
* Merge pull request #13624 from janlazo/vim-8.2.2234Jan Edmund Lazo2020-12-28
|\ | | | | vim-patch:8.1.1032,8.2.{429,1785,2234,2235,2237,2241}
| * vim-patch:8.1.1032: warnings from clang static analyzerJan Edmund Lazo2020-12-28
| | | | | | | | | | | | Problem: Warnings from clang static analyzer. (Yegappan Lakshmanan) Solution: Fix relevant warnings. https://github.com/vim/vim/commit/2c519cf3bfe76083767ac94c674d2e161ed36587
* | fix(fold): dont highlight search results on folded lines (#13616)Matthieu Coudron2020-12-29
|/ | | Behavior may change in future but for now stick to legacy behavior.
* vim-patch:8.1.1192: mode is not cleared when leaving Insert mode with mapped EscJan Edmund Lazo2020-12-26
| | | | | | Problem: Mode is not cleared when leaving Insert mode with mapped Esc. Solution: Clear the mode when redraw_cmdline is set. (closes vim/vim#4269) https://github.com/vim/vim/commit/4c25bd785aa8b565bf973cbba12ed36b76daaa4f
* vim-patch:8.1.0822: peeking and flushing output slows down executionJan Edmund Lazo2020-12-25
| | | | | | | Problem: Peeking and flushing output slows down execution. Solution: Do not update the mode message when global_busy is set. Do not flush when only peeking for a character. (Ken Takata) https://github.com/vim/vim/commit/cb574f415486adff645ce384979bfecf27f5be8c
* fix: appease linterMatthieu Coudron2020-12-24
|
* refactor: de-curwin-ify update_topline/curs_columnsMatthieu Coudron2020-12-23
|
* refactor: pass the window to get_(side)scrolloff_valueMatthieu Coudron2020-12-23
| | | | to less rely on curwin
* folds: use Folded highlight even with spell on (#13393)Matthieu Coudron2020-11-29
| | | | the highlight was not used with spell enabled on folded lines. Thanks to lervag for the nice report.
* screen.c: Allow showbreak to override cursorline. (#13372)shade-of-noon2020-11-25
| | | | | I also added relevant tests. Close #13369
* fix(fold): use Folded highlight even with spell onMatthieu Coudron2020-11-23
| | | | | Partially addresses https://github.com/neovim/neovim/issues/12982. It's more a quickfix while reworking folds.
* refactor: pass window to was_set_insecurelyMatthieu Coudron2020-11-23
| | | | | | working on get_foldtext and wanted to get rid of the curwin backup/restore. Turns out it's not possible else f_foldtext is run on the same window. Kept the cleanup anyway.
* decorations: allow nvim_set_hl to break existing linksBjörn Linse2020-11-21
| | | | also add `default` flag to NOT break existing links/defs
* decoration: split out "decoration" from "extmark" moduleBjörn Linse2020-11-07
| | | | | Decorations will only grow more complex. move the to a separate file, so that extmark.c remains about extmarks.
* Merge pull request #12870 from bfredl/themeparkBjörn Linse2020-11-01
|\ | | | | Color themes (per window/line) and lua theme providers
| * api: add API for themesBjörn Linse2020-11-01
| | | | | | | | | | | | | | | | | | | | co-author: hlpr98 <hlpr98@gmail.com> (dict2hlattrs function) orange is sus?? NOVEMBER DAWN erase the lie that is redraw_later()
* | vim-patch:8.2.1909: number of status line items is limited to 80Rom Grk2020-10-31
|/ | | | | | | | | | Problem: Number of status line items is limited to 80. Solution: Dynamically allocate the arrays. (Rom Grk, closes vim/vim#7181) https://github.com/vim/vim/commit/8133cc6bf454eb90bb0868f7cf806fce5c0c9fe6 The members of stl_item_T have not been prefixed with stl_ contrary to the vim patch because the amount of stl_ prefixes on single lines of code in that region was hurtful to readability.
* fixup: bfredl commentsTJ DeVries2020-10-22
|
* vim-patch:8.2.0943: displaying ^M or ^J depends on current bufferJan Edmund Lazo2020-10-18
| | | | | | | | | | | | | | | Problem: Displaying ^M or ^J depends on current buffer. Solution: Pass the displayed buffer to transchar(). (closes vim/vim#6225) https://github.com/vim/vim/commit/32ee627750e8b7b3fa6516b893e72f6e6af54710 N/A patches for version.c: vim-patch:8.2.0862: ":term ++curwin" makes the current buffer hidden Problem: ":term ++curwin" makes the current buffer hidden. (Harm te Hennepe) Solution: Do not hide the current buffer. (closes vim/vim#6170) https://github.com/vim/vim/commit/b10090928cb5283f867e8457b7eea0985470d8d4
* whineBjörn Linse2020-10-10
|
* screen: untangle static and dynamic decorationsBjörn Linse2020-10-10
|
* because reasons (undefined behavior)Björn Linse2020-10-10
|
* api: multiple decoration providers at onceBjörn Linse2020-10-10
|
* vim-patch:8.1.2294: cursor pos wrong with concealing and search causes a scrollJan Edmund Lazo2020-10-08
| | | | | | | | Problem: Cursor position wrong when characters are concealed and asearch causes a scroll. Solution: Fix the cursor column in a concealed line after window scroll. (closes vim/vim#5215, closes vim/vim#5012) https://github.com/vim/vim/commit/cbee635eee3007db97646ddb9f211a1d4966eb2a
* vim-patch:8.1.1717: last char in menu popup window highlightedJan Edmund Lazo2020-10-08
| | | | | | | | | | | | | | | | Problem: Last char in menu popup window highlighted. Solution: Do not highlight an extra character twice. https://github.com/vim/vim/commit/f914a33c9c8ec5c30da684a4a16edad3e0224f0a N/A patches for version.c: vim-patch:8.1.0746: highlighting not updated with conceal and 'cursorline' Problem: Highlighting not updated with conceal and 'cursorline'. (Jason Franklin) Solution: Do not use a zero line number. Check if 'conceallevel' is set for the current window. https://github.com/vim/vim/commit/bbee8d5122b159683b3f52eddd0da85fcf1fcbfd