summaryrefslogtreecommitdiff
path: root/src/window.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.0.0069v8.0.0069Bram Moolenaar2016-11-061-6/+6
| | | | | Problem: Compiler warning for self-comparison. Solution: Define ONE_WINDOW and add #ifdef.
* patch 7.4.2324v7.4.2324Bram Moolenaar2016-09-041-4/+6
| | | | | | | | Problem: Crash when editing a new buffer and BufUnload autocommand wipes out the new buffer. (Norio Takagi) Solution: Don't allow wiping out this buffer. (partly by Hirohito Higashi) Move old style test13 into test_autocmd. Avoid ml_get error when editing a file.
* patch 7.4.2312v7.4.2312Bram Moolenaar2016-09-031-6/+1
| | | | | | Problem: Crash when autocommand moves to another tab. (Dominique Pelle) Solution: When navigating to another window halfway the :edit command go back to the right window.
* patch 7.4.2309v7.4.2309Bram Moolenaar2016-09-021-7/+19
| | | | | | Problem: Crash when doing tabnext in a BufUnload autocmd. (Dominique Pelle) Solution: When detecting that the tab page changed, don't just abort but delete the window where w_buffer is NULL.
* patch 7.4.2293v7.4.2293Bram Moolenaar2016-08-291-1/+1
| | | | | Problem: Modelines in source code are inconsistant. Solution: Use the same line in most files. Add 'noet'. (Naruhiko Nishino)
* patch 7.4.2279v7.4.2279Bram Moolenaar2016-08-281-2/+10
| | | | | | Problem: Starting diff mode with the cursor in the last line might end up only showing one closed fold. (John Beckett) Solution: Scroll the window to show the same relative cursor position.
* patch 7.4.2250v7.4.2250Bram Moolenaar2016-08-241-4/+4
| | | | | Problem: Some error message cannot be translated. Solution: Enclose them in _() and N_(). (Dominique Pelle)
* patch 7.4.2212v7.4.2212Bram Moolenaar2016-08-141-1/+23
| | | | | | Problem: Mark " is not set when closing a window in another tab. (Guraga) Solution: Check all tabs for the window to be valid. (based on patch by Hirohito Higashi, closes #974)
* patch 7.4.2204v7.4.2204Bram Moolenaar2016-08-121-0/+14
| | | | | | | Problem: It is not easy to get information about buffers, windows and tabpages. Solution: Add getbufinfo(), getwininfo() and gettabinfo(). (Yegappan Lakshmanan)
* patch 7.4.2101v7.4.2101Bram Moolenaar2016-07-241-29/+22
| | | | | Problem: Looping over windows, buffers and tab pages is inconsistant. Solution: Use FOR_ALL_ macros everywhere. (Yegappan Lakshmanan)
* patch 7.4.2077v7.4.2077Bram Moolenaar2016-07-191-0/+9
| | | | | Problem: Cannot update 'tabline' when a tab was closed. Solution: Add the TabClosed autocmd event. (partly by Felipe Morales)
* patch 7.4.2075v7.4.2075Bram Moolenaar2016-07-191-5/+10
| | | | | Problem: No autocommand event to initialize a window or tab page. Solution: Add WinNew and TabNew events. (partly by Felipe Morales)
* patch 7.4.2024v7.4.2024Bram Moolenaar2016-07-101-7/+10
| | | | | Problem: More buf_valid() calls can be optimized. Solution: Use bufref_valid() instead.
* patch 7.4.1956v7.4.1956Bram Moolenaar2016-06-261-3/+11
| | | | | | | Problem: When using CTRL-W f and pressing "q" at the ATTENTION dialog the newly opened window is not closed. Solution: Close the window and go back to the original one. (Norio Takagi, Hirohito Higashi)
* patch 7.4.1895v7.4.1895Bram Moolenaar2016-06-041-1/+1
| | | | | | Problem: Cannot use a window ID where a window number is expected. Solution: Add LOWEST_WIN_ID, so that the window ID can be used where a number is expected.
* patch 7.4.1835v7.4.1835Bram Moolenaar2016-05-241-9/+9
| | | | | Problem: When splitting and closing a window the status height changes. Solution: Compute the frame height correctly. (Hirohito Higashi)
* patch 7.4.1704v7.4.1704Bram Moolenaar2016-04-031-3/+10
| | | | | Problem: Using freed memory with "wincmd p". (Dominique Pelle) Solution: Also clear "prevwin" in other tab pages.
* patch 7.4.1690v7.4.1690Bram Moolenaar2016-03-311-2/+2
| | | | | Problem: Can't compile with the conceal feature but without multi-byte. Solution: Adjust #ifdef. (Owen Leibman)
* patch 7.4.1615v7.4.1615Bram Moolenaar2016-03-191-1/+5
| | | | | Problem: Build fails with tiny features. Solution: Adjust #ifdefs.
* patch 7.4.1611v7.4.1611Bram Moolenaar2016-03-191-185/+19
| | | | | | Problem: The versplit feature makes the code uneccessary complicated. Solution: Remove FEAT_VERTSPLIT, always support vertical splits when FEAT_WINDOWS is defined.
* patch 7.4.1558v7.4.1558Bram Moolenaar2016-03-131-0/+15
| | | | | Problem: It is not easy to find out what windows display a buffer. Solution: Add win_findbuf().
* patch 7.4.1557v7.4.1557Bram Moolenaar2016-03-131-0/+100
| | | | | Problem: Windows cannot be identified. Solution: Add a unique window number to each window and functions to use it.
* patch 7.4.1476v7.4.1476Bram Moolenaar2016-03-031-2/+2
| | | | | Problem: Function arguments marked as unused while they are not. Solution: Remove UNUSED. (Yegappan Lakshmanan)
* patch 7.4.1399v7.4.1399Bram Moolenaar2016-02-231-1/+1
| | | | | Problem: The MS-DOS code does not build. Solution: Remove the old MS-DOS code.
* patch 7.4.1215v7.4.1215Bram Moolenaar2016-01-301-357/+236
| | | | | | Problem: Using old style function declarations. Solution: Change to new style function declarations. (script by Hirohito Higashi)
* patch 7.4.1199v7.4.1199Bram Moolenaar2016-01-291-52/+52
| | | | | Problem: Still using __ARGS. Solution: Remove __ARGS in several files. (script by Hirohito Higashi)
* patch 7.4.1137v7.4.1137Bram Moolenaar2016-01-191-0/+4
| | | | | | Problem: Illegal memory access when using :copen and :cclose. Solution: Avoid that curbuf is invalid. (suggestion by Justin M. Keyes) Add a test.
* patch 7.4.1008v7.4.1008Bram Moolenaar2015-12-311-1/+1
| | | | | Problem: The OS/2 code pollutes the source while nobody uses it these days. Solution: Drop the support for OS/2.
* patch 7.4.961v7.4.961Bram Moolenaar2015-12-051-2/+1
| | | | | Problem: Test107 fails in some circunstances. Solution: When using "zt", "zb" and "z=" recompute the fraction.
* patch 7.4.936v7.4.936Bram Moolenaar2015-11-221-0/+2
| | | | | | Problem: Crash when dragging with the mouse. Solution: Add safety check for NULL pointer. Check mouse position for valid value. (Hirohito Higashi)
* patch 7.4.923v7.4.923Bram Moolenaar2015-11-191-5/+5
| | | | | Problem: Prototypes not always generated. Solution: Change #if to OR with PROTO.
* patch 7.4.822v7.4.822Bram Moolenaar2015-08-111-3/+3
| | | | | Problem: More problems reported by coverity. Solution: Avoid the warnings. (Christian Brabandt)
* patch 7.4.792v7.4.792Bram Moolenaar2015-07-211-1/+7
| | | | | Problem: Can only conceal text by defining syntax items. Solution: Use matchadd() to define concealing. (Christian Brabandt)
* patch 7.4.709v7.4.709Bram Moolenaar2015-04-211-8/+15
| | | | | | Problem: ":tabmove" does not work as documented. Solution: Make it work consistently. Update documentation and add tests. (Hirohito Higashi)
* patch 7.4.706v7.4.706Bram Moolenaar2015-04-211-1/+7
| | | | | | Problem: Window drawn wrong when 'laststatus' is zero and there is a command-line window. (Yclept Nemo) Solution: Set the status height a bit later. (Christian Brabandt)
* updated for version 7.4.642v7.4.642Bram Moolenaar2015-02-271-5/+11
| | | | | Problem: When using "gf" escaped spaces are not handled. Solution: Recognize escaped spaces.
* updated for version 7.4.572v7.4.572Bram Moolenaar2015-01-141-0/+104
| | | | | Problem: Address type of :wincmd depends on the argument. Solution: Check the argument.
* updated for version 7.4.546v7.4.546Bram Moolenaar2014-12-131-16/+19
| | | | | Problem: Repeated use of vim_snprintf() with a number. Solution: Move these vim_snprintf() calls into a function.
* updated for version 7.4.530v7.4.530Bram Moolenaar2014-11-271-3/+15
| | | | | | | | Problem: Many commands take a count or range that is not using line numbers. Solution: For each command specify what kind of count it uses. For windows, buffers and arguments have "$" and "." have a relevant meaning. (Marcin Szamotulski)
* updated for version 7.4.518v7.4.518Bram Moolenaar2014-11-191-1/+1
| | | | | Problem: Using status line height in width computations. Solution: Use one instead. (Hirohito Higashi)
* updated for version 7.4.487v7.4.487Bram Moolenaar2014-10-211-19/+11
| | | | | | Problem: ":sign jump" may use another window even though the file is already edited in the current window. Solution: First check if the file is in the current window. (James McCoy)
* updated for version 7.4.466v7.4.466Bram Moolenaar2014-10-091-1/+2
| | | | | Problem: CTRL-W } does not open preview window. (Erik Falor) Solution: Don't set g_do_tagpreview for CTRL-W }.
* updated for version 7.4.460v7.4.460Bram Moolenaar2014-09-241-0/+2
| | | | | Problem: Can't build without the quickfix feature. (Erik Falor) Solution: Add a #ifdef.
* updated for version 7.4.454v7.4.454Bram Moolenaar2014-09-231-4/+5
| | | | | | | Problem: When using a Visual selection of multiple words and doing CTRL-W_] it jumps to the tag matching the word under the cursor, not the selected text. (Patrick hemmer) Solution: Do not reset Visual mode. (idea by Christian Brabandt)
* updated for version 7.4.446v7.4.446Bram Moolenaar2014-09-191-8/+3
| | | | | | | Problem: In some situations, when setting up an environment to trigger an autocommand, the environment is not properly restored. Solution: Check the return value of switch_win() and call restore_win() always. (Daniel Hahler)
* updated for version 7.4.386v7.4.386Bram Moolenaar2014-07-301-0/+5
| | | | | Problem: When splitting a window the changelist position is wrong. Solution: Copy the changelist position. (Jacob Niehus)
* updated for version 7.4.377v7.4.377Bram Moolenaar2014-07-231-3/+37
| | | | | | Problem: When 'equalalways' is set a split may report "no room" even though there is plenty of room. Solution: Compute the available room properly. (Yukihiro Nakadaira)
* updated for version 7.4.373v7.4.373Bram Moolenaar2014-07-161-2/+3
| | | | | Problem: Compiler warning for unused argument and unused variable. Solution: Add UNUSED. Move variable inside #ifdef.
* updated for version 7.4.372v7.4.372Bram Moolenaar2014-07-161-20/+22
| | | | | | Problem: When 'winminheight' is zero there might not be one line for the current window. Solution: Change the size computations. (Yukihiro Nakadaira)
* updated for version 7.4.369v7.4.369Bram Moolenaar2014-07-161-0/+4
| | | | | Problem: Using freed memory when exiting while compiled with EXITFREE. Solution: Set curwin to NULL and check for that. (Dominique Pelle)