aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/window.c
Commit message (Collapse)AuthorAge
...
| * vim-patch:8.1.1425: win_execute() does not set window pointers properlyjing2021-05-06
| | | | | | | | | | | | | | Problem: Win_execute() does not set window pointers properly. Solution: Use switch_win_noblock(). Also execute autocommands in a popup window. https://github.com/vim/vim/commit/89adc3a1371d211f7766f3dbc0975ecb2f862327
* | coverity/188735: last_nonfloat: Ensure wp is non-NULL before dereferencingJames McCoy2021-05-06
| |
* | Merge pull request #14483 from mjlbach/floating_window_border_fixBjörn Linse2021-05-05
|\ \ | | | | | | window.c: fix floating window border width calculation
| * | window.c: fix floating window border width calculationMichael Lingelbach2021-05-03
| |/ | | | | | | | | | | * lift calculation of w_border_adj into win_config_float * Check max floating window height and width against w_{height,width}_outer when positioning window
* / ui_compositior: handle multiple displayed floats in the same tickBjörn Linse2021-04-26
|/ | | | | problem: the order of non-focuesed float opened before focused float is wrong (sunjon) solution: check curwin and correct the order (bfredl)
* Border: allow to enable/disable specific border edgesBjörn Linse2021-04-04
|
* Make sure window is still valid in the middle of calling :lopen (#14240)Tony Chen2021-03-29
| | | | | Make sure that oldwin is not invalid after splitting Revisit this when porting vim patch v8.1.0892 and related quickfix patches.
* floats: add borders (MS-DOS MODE)Björn Linse2021-03-22
|
* wheel: move non-window code out of window.cBjörn Linse2021-03-22
|
* w_grid_alloc: baseline implBjörn Linse2021-03-22
|
* vim-patch:8.2.0422: crash when passing popup window to win_splitmove()Andy K. Massimino2021-03-19
| | | | | | | | Problem: Crash when passing popup window to win_splitmove(). (john Devin) Solution: Disallow moving a popup window. (closes vim/vim#5816) https://github.com/vim/vim/commit/0f1563ffee4397f5b379517c41b7c9a977fd2e22 Add translated test for 8.2.0422 (popup->floating)
* 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
| |
* | vim-patch:8.2.2595: setting 'winminheight' may cause 'lines' to changeJan Edmund Lazo2021-03-13
|/ | | | | | Problem: Setting 'winminheight' may cause 'lines' to change. Solution: Also take minimal height of other tabpages into account. (vim/vim#7899) https://github.com/vim/vim/commit/9e813b3dea94a8952b732a224fa31beba6e85973
* vim-patch:8.2.2236: 'scroll' option can change when setting the statuslineJan Edmund Lazo2021-03-02
| | | | | | | | Problem: 'scroll' option can change when setting the statusline or tabline but the option context is not updated. Solution: Update the script context when the scroll option is changed as a side effect. (Christian Brabandt, closes vim/vim#7533) https://github.com/vim/vim/commit/746670604a60cb0356b56c112ffb6d297c679099
* vim-patch:8.2.2560: setting 'winminheigt' does not take tabline into accountJan Edmund Lazo2021-03-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Setting 'winminheigt' does not take tabline into account. Solution: Subtract the tabline from the available height. (closes vim/vim#7899) https://github.com/vim/vim/commit/39d4cab494248131b6fb07aba633aa4da7871a57 N/A patches for version.c: vim-patch:8.1.0680: not easy to see what features are unavailable Problem: Not easy to see what features are unavailable. Solution: Highlight disabled features in the :version output. (Nazri Ramliy, closes vim/vim#3756) https://github.com/vim/vim/commit/c85ffc9daba6f66d5958ae80249d26f7f81bfced vim-patch:8.2.2196: :version output has extra spaces in compile and link command Problem: :version output has extra spaces in compile and link command. Solution: Adjust QUOTESED. (closes vim/vim#7505) https://github.com/vim/vim/commit/abcbb0e9ad43fc25077e1681528e72ddcbeed300 vim-patch:8.2.2551: MS-Windows: colors test file is not installed Problem: MS-Windows: colors test file is not installed. Solution: Also copy runtime/colors/tools. (Ken Takata, closes vim/vim#7902) https://github.com/vim/vim/commit/d0bce504ec52def729fffa35c8896979af348d32 vim-patch:8.2.2559: MS-Windows: guifont test fails on Windows XP Problem: MS-Windows: guifont test fails on Windows XP. Solution: Check windowsversion(). https://github.com/vim/vim/commit/3650fd709807d5ac182e28d952cbd790c1ad0a6a
* vim-patch:8.2.2244: crash when making the window width negative (#13633)Jan Edmund Lazo2020-12-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Crash when making the window width of the not-current window negative. Solution: Make sure the window width is not negative. (closes vim/vim#7568) https://github.com/vim/vim/commit/89015a675990bd7d70e041c5d890edb803b5c6b7 N/A patches for version.c: vim-patch:8.0.1617: Win32: :shell command in the GUI crashes Problem: Win32: :shell command in the GUI crashes. Solution: Handle the situation that "cmd" is NULL. (Yasuhiro Matsumoto, closes vim/vim#2721) https://github.com/vim/vim/commit/42f652f733550a0d8bc9b030c9a5a62e7e2d8668 vim-patch:8.1.0244: no redraw when using a STOP signal on Vim and then CONT Problem: No redraw when using a STOP signal on Vim and then a CONT signal. Solution: Catch the CONT signal and force a redraw. (closes vim/vim#3285) https://github.com/vim/vim/commit/917e32bda5a93941fbbccab09ae3960114b67188 vim-patch:8.1.0302: crash when using :suspend and "fg" Problem: Crash when using :suspend and "fg". Solution: Undo patch 8.1.244. https://github.com/vim/vim/commit/f1883479be91550bc31dd88f593b3012863a2629 vim-patch:8.1.0548: crash when job callback unloads a buffer Problem: Crash when job callback unloads a buffer. (James McCoy) Solution: Don't round up the wait time to 10 msec in ui_inchar(). https://github.com/vim/vim/commit/1341024e0823d9aa9cde08d6b55e12f2d90ff778 vim-patch:8.1.1652: GUI: popup window doesn't close on mouse movement Problem: GUI: popup window doesn't close on mouse movement. (Paul Jolly) Solution: Generate mouse-move events when a popup window is visible. https://github.com/vim/vim/commit/49fe95f22517b775506ef34681000d84bb417eb3 vim-patch:8.1.1695: Windows 10: crash when cursor is at bottom of terminal Problem: Windows 10: crash when cursor is at bottom of terminal. Solution: Position the cursor before resizing. (Yasuhiro Matsumoto, closes vim/vim#4679) https://github.com/vim/vim/commit/f49a6922596ea88856da802fe33df953b7d77ecb vim-patch:8.2.2246: cursor keys not recognized at the hit-Enter prompt Problem: Cursor keys not recognized at the hit-Enter prompt after executing an external command. Solution: Change the codes for the extra cursor keys. (closes vim/vim#7562) Tune the delays to avoid test flakyness. https://github.com/vim/vim/commit/4d8c96d4668ac965d4e84b9676fba6d7efe62a32
* vim-patch:8.1.2227: layout wrong if 'lines' changes while cmdline window is openJan Edmund Lazo2020-12-26
| | | | | | | Problem: Layout wrong if 'lines' changes while cmdline window is open. Solution: Do not restore the window layout if 'lines' changed. (closes vim/vim#5130) https://github.com/vim/vim/commit/1c329c04be2e95a3589a53f2978926e91b450cca
* Merge pull request #13595 from teto/fix-fillerBjörn Linse2020-12-24
|\ | | | | de curwinify some functions
| * 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
* | vim-patch:8.2.1966: popup becomes current window after closing a terminal windowJan Edmund Lazo2020-12-20
| | | | | | | | | | | | | | | | Problem: Popup becomes current window after closing a terminal window. Solution: When restoring the window after executing autocommands, check that the window ID is still the same. (Naruhiko Nishino, closes vim/vim#7272) https://github.com/vim/vim/commit/cbcd9cbd77acc8cc97c0d44683d96c01d3dd0fa7
* | foldcolumn: support "auto" (#13571)Jan Edmund Lazo2020-12-20
|/ | | | | | "set foldcolumn=auto" is documented but not supported. Support it by making it behave as "auto:1", similar to "signcolumn". Close https://github.com/neovim/neovim/pull/13561
* Fixed lint errorShirasaka2020-12-06
|
* Moved temporary variable to where it's usedShirasaka2020-12-05
|
* ui: Fix win_hide distination gridshirasaka2020-12-05
| | | | | | When create tab, win_hide sent to new tab and new tab's previous tab. So, if created tab that not next tab (eg. $tabnew cmd), send win_hide to not current tab, and fixed this.
* menu: remove winbar codeJan Edmund Lazo2020-11-20
| | | | | | | | | No unmerged Vim patch, applicable to Neovim, depend on WinBar feature. It was merged only for merging Vim patches. It is currently useless in Neovim. Remove it to avoid rendering issues. Close https://github.com/neovim/neovim/issues/12689
* fix(floatwin): don't always use winheightThomas Vigouroux2020-11-16
|
* vim-patch:8.1.0810: too many #ifdefsJan Edmund Lazo2020-11-12
| | | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, part 4. https://github.com/vim/vim/commit/264b74fa545edfb92c0d7d08a02c26331cc5b168
* Add v:event flag on DirChanged signaling switching window (#13153)Andrea Cedraro2020-11-07
| | | Closes #9909
* my fight with the linterRom Grk2020-11-06
|
* Merge branch 'master' into add-scroll-eventsRom Grk2020-11-03
|\
| * 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.0131: command line is not cleared when switching tabsJan Edmund Lazo2020-10-29
| |/ | | | | | | | | | | | | | | Problem: Command line is not cleared when switching tabs and the command line height differs. Solution: Set the "clear_cmdline" flag when needed. (Naruhiko Nishino, closes vim/vim#5495) https://github.com/vim/vim/commit/479950f6c9aee4806f28a2b2fe5471e18a034cff
* / feat: implement a working WinScrolled autocmdRom Grk2020-10-28
|/
* Revert "vim-patch:8.1.1015: quickfix buffer shows up in list, can't get ↵Jan Edmund Lazo2020-10-20
| | | | | | buffer number" This reverts commit 4cd69151cf39cd4c3f083da2275f17206dcf5bc3.
* vim-patch:8.1.1015: quickfix buffer shows up in list, can't get buffer numberJan Edmund Lazo2020-10-10
| | | | | | | | Problem: Quickfix buffer shows up in list, can't get buffer number. Solution: Make the quickfix buffer unlisted when the quickfix window is closed. get the quickfix buffer number with getqflist(). (Yegappan Lakshmanan, closes vim/vim#4113) https://github.com/vim/vim/commit/647e24ba3dbf7ff448aa471b1a659a18267ae056
* vim-patch:8.2.1780: statusline not updated when splitting windowsJan Edmund Lazo2020-10-02
| | | | | | Problem: Statusline not updated when splitting windows. Solution: Call status_redraw_all(). (Jason Franklin, closes vim/vim#5496) https://github.com/vim/vim/commit/668008be66326ed9e5b1122abede34ed3d2de2d8
* vim-patch:8.2.1684: "gF" does not use line number after file in Visual modeJan Edmund Lazo2020-09-14
| | | | | | | | Problem: "gF" does not use line number after file in Visual mode. Solution: Look for ":123" after the Visual area. (closes vim/vim#6952) https://github.com/vim/vim/commit/efd5d8a967ba80f9e2826c35be98344d8f00af77 Cherry-pick test_gf_visual changes from patch 8.2.1040.
* fix(win): ignore closing wins in win_findbuf #12798Thomas Vigouroux2020-08-31
| | | | | This caused segfaults when calling win_findbuf in an `on_detach` callback, when the callback was triggered when closing the last window containing the buffer.
* vim-patch:8.0.1375: window size wrong after maximizing with WinBarJan Edmund Lazo2020-04-26
| | | | | | | Problem: Window size wrong after maximizing with WinBar. (Lifepillar) Solution: Fix height computations. Redraw window when it is zero height but has a WinBar. (closes vim/vim#2356) https://github.com/vim/vim/commit/415a6939a4e8d4e26b4af26c24eb75243d3a2756
* vim-patch:8.0.1334: splitting a window with a WinBar damages window layoutJan Edmund Lazo2020-04-26
| | | | | | | | Problem: Splitting a window with a WinBar damages window layout. (Lifepillar) Solution: Take the winbar into account when computing the new window position. Add WINBAR_HEIGHT(). https://github.com/vim/vim/commit/3167c3e7010ac7e2fd7d3aa198dd2d1dcff8ecc8
* vim-patch:8.0.1125: wrong window height when splitting window with window ↵Jan Edmund Lazo2020-04-26
| | | | | | | | toolbar Problem: Wrong window height when splitting window with window toolbar. Solution: Add or subtract the window toolbar height. https://github.com/vim/vim/commit/d326ad6e93604222c64bae51f47521fe9114d1ea
* vim-patch:8.0.1123: cannot define a toolbar for a windowJan Edmund Lazo2020-04-26
| | | | | | | | | | Problem: Cannot define a toolbar for a window. Solution: Add a window-local toolbar. https://github.com/vim/vim/commit/1b9645de3c05f37b5c30e78f999351b0cf486ade "WinBar" code in "screen.c" was not ported. Fix https://github.com/neovim/neovim/issues/11513#issuecomment-562012827
* vim-patch:8.1.1745: compiler warning for unused argumentJan Edmund Lazo2020-04-13
| | | | | | Problem: Compiler warning for unused argument. Solution: Add UNUSED. Change comments to new style. https://github.com/vim/vim/commit/1f164b19685d8ad709b11f3f1933685469251e30
* api/ui: win_viewport event for visible range and cursor position in windowBjörn Linse2020-04-01
|
* vim-patch:8.1.0864 Make 'scrolloff' and 'sidescrolloff' options window local ↵Will Eccles2020-03-17
| | | | | | | | | | (#11854) Problem: cannot have a local value for 'scrolloff' and 'sidescrolloff' Author: Bram Moolenar https://github.com/vim/vim/commit/375e3390078e740d3c83b0c118c50d9a920036c7
* addressing reviewsMatthieu Coudron2020-03-01
|
* foldcolumn: allow auto:XMatthieu Coudron2020-02-29
| | | | | | | | Similar to signcolumn, allow foldcolumn to adapt itself to the number of folds. Regression: vim supports a maximum fdc of 12, this limits it to 9.