aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/screen.c
Commit message (Collapse)AuthorAge
* [RDY] Add buffer information to tabline_update (#12481)John Gehrig2021-06-27
| | | | | | | | | | * Add buffer information to tabline_update Most terminal implementations of the tabline display buffer and tab information. Many neovim-qt users disable GuiTabline because it lacks functionality provided in the terminal implementation. The tabline_update event should include buffer information too, so client GUIs can display rich useful tabs.
* vim-patch:8.2.3012: when 'rightleft' is set the line number is drawn ↵Jan Edmund Lazo2021-06-17
| | | | | | | | | reversed (#14839) Problem: When 'rightleft' is set the line number is sometimes drawn reversed. Solution: Adjust how space is handled. (Christian Brabandt, closes vim/vim#8389, closes vim/vim#8391) https://github.com/vim/vim/commit/29f0dc3689eafcf7888e06d57d1cf79e62c5c148
* Merge pull request #14454 from eltociear/patch-1Thomas Vigouroux2021-06-15
|\ | | | | screen: fix typo in screen.c
| * screen: fix typo in screen.cIkko Ashimine2021-04-29
| | | | | | accomodate -> accommodate
* | screen: pvs/v614Jan Edmund Lazo2021-06-05
| | | | | | | | | | win_col_offset must be 0 to be no-opt when passed to col_off param of draw_virt_text().
* | vim-patch:8.2.1689: 'colorcolumn' doesn't show in indentJan Edmund Lazo2021-05-24
| | | | | | | | | | | | | | Problem: 'colorcolumn' doesn't show in indent. Solution: Also draw the column when draw_state is WL_BRI or WL_SBR. (Alexey Demin, closes vim/vim#6948, closes vim/vim#6619) https://github.com/vim/vim/commit/ad5e5631c5dc93a50bbe637be254c5e9968848ea
* | vim-patch:8.2.1957: diff and cursorcolumn highlighting don't mixJan Edmund Lazo2021-05-24
| | | | | | | | | | | | | | Problem: Diff and cursorcolumn highlighting don't mix. Solution: Fix condition for what attribute to use. (Christian Brabandt, closes vim/vim#7258, closes vim/vim#7260) https://github.com/vim/vim/commit/fabc3ca896751277f18a3a68e5661179728db3ad
* | decorations: right_align and win_colBjörn Linse2021-05-01
|/
* vim-patch:8.1.2313: debugging where a delay comes from is not easyJan Edmund Lazo2021-04-15
| | | | | | Problem: Debugging where a delay comes from is not easy. Solution: Use different values when calling ui_delay(). https://github.com/vim/vim/commit/eda1da0c9a8db1400649629117e7d248c07735f7
* decoration: Clean up duplicate Decoration attributes + bonus hl_eol flagBjörn Linse2021-04-14
|
* vim-patch:8.1.2205: sign entry structure has confusing name (#14289)Lewis Russell2021-04-05
| | | | Problem: Sign entry structure has confusing name. Solution: Rename signlist_T to sign_entry_T and prefix se_ to the fields.
* Border: allow to enable/disable specific border edgesBjörn Linse2021-04-04
|
* Merge pull request #14063 from lewis6991/masterJan Edmund Lazo2021-04-04
|\ | | | | vim-patch:8.1.{1631,1682,1899}: sign improvements
| * vim-patch:8.1.1631: displaying signs is inefficientLewis Russell2021-04-03
| | | | | | | | | | | | | | | | + support for neovim's dynamic width signcolumn Problem: Displaying signs is inefficient. Solution: Avoid making multiple calls to get information about a placed sign. (Yegappan Lakshmanan, closes #4586)
* | Merge pull request #14268 from erw7/fix-p_ch-problemerw72021-04-04
|\ \ | |/ |/| screen: fix problem with p_ch
| * screen: fix problem with p_cherw72021-04-03
| | | | | | | | | | When the screen is resized, p_ch is not re-set to the appropriate value. As a result, access to invalid addresses was occurring.
* | clang/'Logic error': assert nonnull p_extraJan Edmund Lazo2021-04-02
| |
* | vim-patch:8.2.2655: The -w command line argument doesn't workJan Edmund Lazo2021-04-01
|/ | | | | | | | Problem: The -w command line argument doesn't work. Solution: Don't set 'window' when set with the -w argument. (closes vim/vim#8011) https://github.com/vim/vim/commit/0a1a6a1aa4004d0e4d64cc375540156b8bd92a87 Cherry-pick Test_w_arg() from patch v8.2.0509.
* vim-patch:8.2.2454: leading space can not be made visible (#14138)zeertzjq2021-03-29
| | | | | | Problem: Leading space can not be made visible. Solution: Add "lead:" to 'listchars'. (closes vim/vim#7772) https://github.com/vim/vim/commit/91478ae49a1b2dc1de63821db731a343e855dcc0
* 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
|