summaryrefslogtreecommitdiff
path: root/src/window.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.1.1928: popup windows don't move with the text when making changesv8.1.1928Bram Moolenaar2019-08-251-0/+4
| | | | | | | Problem: Popup windows don't move with the text when making changes. Solution: Add the 'textprop" property to the popup window options, position the popup relative to a text property. (closes #4560) No tests yet.
* patch 8.1.1908: every popup window consumes a buffer numberv8.1.1908Bram Moolenaar2019-08-211-1/+1
| | | | | | Problem: Every popup window consumes a buffer number. Solution: Recycle buffers only used for popup windows. Do not list popup window buffers.
* patch 8.1.1891: functions used in one file are globalv8.1.1891Bram Moolenaar2019-08-201-14/+17
| | | | | Problem: Functions used in one file are global. Solution: Add "static". (Yegappan Lakshmanan, closes #4840)
* patch 8.1.1832: win_execute() does not work in other tabv8.1.1832Bram Moolenaar2019-08-091-0/+24
| | | | | Problem: Win_execute() does not work in other tab. (Rick Howe) Solution: Take care of the tab. (closes #4792)
* patch 8.1.1756: autocommand that splits window messes up window layoutv8.1.1756Bram Moolenaar2019-07-271-1/+64
| | | | | | Problem: Autocommand that splits window messes up window layout. Solution: Disallow splitting a window while closing one. In ":all" give an error when moving a window will not work.
* patch 8.1.1755: leaking memory when using a popup window maskv8.1.1755Bram Moolenaar2019-07-261-0/+1
| | | | | Problem: Leaking memory when using a popup window mask. Solution: Free the cached mask.
* patch 8.1.1734: the evalfunc.c file is too bigv8.1.1734Bram Moolenaar2019-07-221-295/+5
| | | | | Problem: The evalfunc.c file is too big. Solution: Move some functions to other files.
* patch 8.1.1612: cannot show an existing buffer in a popup windowv8.1.1612Bram Moolenaar2019-06-301-3/+6
| | | | | Problem: Cannot show an existing buffer in a popup window. Solution: Support buffer number argument in popup_create().
* patch 8.1.1600: cannot specify highlighting for popup window scrollbarv8.1.1600Bram Moolenaar2019-06-261-0/+2
| | | | | Problem: Cannot specify highlighting for popup window scrollbar. Solution: Add "scrollbarhighlight" and "thumbhighlight" options.
* patch 8.1.1580: cannot make part of a popup transparentv8.1.1580Bram Moolenaar2019-06-231-0/+1
| | | | | Problem: Cannot make part of a popup transparent. Solution: Add the "mask" option.
* patch 8.1.1559: popup window title property not implemented yetv8.1.1559Bram Moolenaar2019-06-161-0/+1
| | | | | Problem: Popup window title property not implemented yet. Solution: Implement the title property.
* patch 8.1.1555: NOT_IN_POPUP_WINDOW is confusingv8.1.1555Bram Moolenaar2019-06-161-5/+5
| | | | | Problem: NOT_IN_POPUP_WINDOW is confusing. (Andy Massimino) Solution: Rename to ERROR_IF_POPUP_WINDOW().
* patch 8.1.1525: cannot move a popup window with the mousev8.1.1525Bram Moolenaar2019-06-131-1/+1
| | | | | | Problem: Cannot move a popup window with the mouse. Solution: Add the "drag" property and make it possible to drag a popup window by its border.
* patch 8.1.1521: when a popup window is closed the buffer remainsv8.1.1521Bram Moolenaar2019-06-121-6/+6
| | | | | Problem: When a popup window is closed the buffer remains. Solution: Wipe out the buffer.
* patch 8.1.1452: line and col property of popup windows not properly checkedv8.1.1452Bram Moolenaar2019-06-021-0/+8
| | | | | Problem: Line and col property of popup windows not properly checked. Solution: Check for "+" or "-" sign.
* patch 8.1.1446: popup window callback not implemented yetv8.1.1446Bram Moolenaar2019-06-011-0/+1
| | | | | Problem: Popup window callback not implemented yet. Solution: Implement the callback.
* patch 8.1.1445: popup window border highlight not implemented yetv8.1.1445Bram Moolenaar2019-06-011-0/+2
| | | | | Problem: Popup window border highlight not implemented yet. Solution: Implement the "borderhighlight" option.
* patch 8.1.1441: popup window filter not yet implementedv8.1.1441Bram Moolenaar2019-06-011-0/+3
| | | | | Problem: Popup window filter not yet implemented. Solution: Implement the popup filter.
* patch 8.1.1438: some commands cause trouble in a popup windowv8.1.1438Bram Moolenaar2019-06-011-2/+15
| | | | | Problem: Some commands cause trouble in a popup window. Solution: Add NOT_IN_POPUP_WINDOW.
* patch 8.1.1433: win_execute() may leave popup window focusedv8.1.1433Bram Moolenaar2019-05-311-0/+6
| | | | | | Problem: Win_execute() may leave popup window focused, eventually leading to a crash. (Bjorn Linse) Solution: When previous window was closed, go to the first window.
* patch 8.1.1425: win_execute() does not set window pointers properlyv8.1.1425Bram Moolenaar2019-05-301-4/+30
| | | | | | Problem: Win_execute() does not set window pointers properly. Solution: Use switch_win_noblock(). Also execute autocommands in a popup window.
* patch 8.1.1414: alloc() returning "char_u *" causes a lot of type castsv8.1.1414Bram Moolenaar2019-05-281-8/+8
| | | | | | Problem: Alloc() returning "char_u *" causes a lot of type casts. Solution: Have it return "void *". (Mike Williams) Define ALLOC_ONE() to check the simple allocations.
* patch 8.1.1403: cannot build without the timer featurev8.1.1403Bram Moolenaar2019-05-261-0/+4
| | | | | Problem: Cannot build without the timer feature. Solution: Add #ifdef.
* patch 8.1.1402: "timer" option of popup windows not supportedv8.1.1402Bram Moolenaar2019-05-261-6/+4
| | | | | Problem: "timer" option of popup windows not supported. Solution: Implement the "timer" option. (Yasuhiro Matsumoto, closes #4439)
* patch 8.1.1400: using global pointer for tab-local popups is clumsyv8.1.1400Bram Moolenaar2019-05-261-27/+3
| | | | | Problem: Using global pointer for tab-local popups is clumsy. Solution: Use the pointer in tabpage_T.
* patch 8.1.1399: popup windows not adjusted when switching tabsv8.1.1399Bram Moolenaar2019-05-261-2/+30
| | | | | Problem: Popup windows not adjusted when switching tabs. Solution: Save and restore first_tab_popupwin. Fix closing a tabpage.
* patch 8.1.1392: build failure in tiny versionv8.1.1392Bram Moolenaar2019-05-251-1/+1
| | | | | Problem: Build failure in tiny version. Solution: Define ex_popupclear to ex_ni if not implemented. Add UNUSED.
* patch 8.1.1391: no popup window supportv8.1.1391Bram Moolenaar2019-05-251-45/+131
| | | | | Problem: No popup window support. Solution: Add initial code for popup windows. Add the 'wincolor' option.
* patch 8.1.1386: unessesary type casts for lalloc()v8.1.1386Bram Moolenaar2019-05-241-6/+6
| | | | | Problem: Unessesary type casts for lalloc(). Solution: Remove type casts. Change lalloc(size, TRUE) to alloc(size).
* patch 8.1.1347: fractional scroll position not restored after closing windowv8.1.1347Bram Moolenaar2019-05-181-2/+3
| | | | | Problem: Fractional scroll position not restored after closing window. Solution: Do restore fraction if topline is not one.
* patch 8.1.1327: unnecessary scroll after horizontal splitv8.1.1327Bram Moolenaar2019-05-121-3/+7
| | | | | | Problem: Unnecessary scroll after horizontal split. Solution: Don't adjust to fraction if all the text fits in the window. (Martin Kunev, closes #4367)
* patch 8.1.1242: no cmdline redraw when tabpages have different 'cmdheight'v8.1.1242Bram Moolenaar2019-05-011-0/+2
| | | | | | Problem: No cmdline redraw when tabpages have different 'cmdheight'. Solution: redraw the command line when 'cmdheight' changes when switching tabpages. (closes #4321)
* patch 8.1.1241: Ex command info contains confusing informationv8.1.1241Bram Moolenaar2019-05-011-7/+7
| | | | | | | Problem: Ex command info contains confusing information. Solution: When using the NOTADR flag use ADDR_OTHER for the address type. Cleanup code using NOTADR. Check for errors in create_cmdidxs.vim. Adjust Makefile to see the errors.
* patch 8.1.1228: not possible to process tags with a functionv8.1.1228Bram Moolenaar2019-04-281-4/+6
| | | | | Problem: Not possible to process tags with a function. Solution: Add tagfunc() (Christian Brabandt, Andy Massimino, closes #4010)
* patch 8.1.1218: cannot set a directory for a tab pagev8.1.1218Bram Moolenaar2019-04-271-5/+19
| | | | | Problem: Cannot set a directory for a tab page. Solution: Add the tab-local directory. (Yegappan Lakshmanan, closes #4212)
* patch 8.1.1207: some compilers give warning messagesv8.1.1207Bram Moolenaar2019-04-261-1/+1
| | | | | | Problem: Some compilers give warning messages. Solution: Initialize variables, change printf() argument. (Christian Brabandt, closes #4305)
* patch 8.1.1205: a BufReadPre autocommand may cause the cursor to movev8.1.1205Bram Moolenaar2019-04-251-0/+29
| | | | | | | Problem: A BufReadPre autocommand may cause the cursor to move. Solution: Restore the cursor position after executing the autocommand, unless the autocommand moved it. (Christian Brabandt, closes #4302, closes #4294)
* patch 8.1.1182: some function prototypes are outdatedv8.1.1182Bram Moolenaar2019-04-171-1/+1
| | | | | Problem: Some function prototypes are outdated. Solution: Update function prototypes. (Ken Takata, closes #4267)
* patch 8.1.1140: not easy to find out what neighbors a window hasv8.1.1140Bram Moolenaar2019-04-081-18/+48
| | | | | Problem: Not easy to find out what neighbors a window has. Solution: Add more arguments to winnr(). (Yegappan Lakshmanan, closes #3993)
* patch 8.1.1088: height of quickfix window not retained with vertical splitv8.1.1088Bram Moolenaar2019-03-301-4/+4
| | | | | | Problem: Height of quickfix window not retained with vertical split. Solution: Use frame_fixed_height() and frame_fixed_width(). (Hongbo Liu, closes #4013, closes #2998)
* patch 8.1.1015: quickfix buffer shows up in list, can't get buffer numberv8.1.1015Bram Moolenaar2019-03-171-3/+9
| | | | | | | 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 #4113)
* patch 8.1.0994: relative cursor position is not calculated correctlyv8.1.0994Bram Moolenaar2019-03-041-9/+10
| | | | | | Problem: Relative cursor position is not calculated correctly. Solution: Always set topline, also when window is one line only. (Robert Webb) Add more info to getwininfo() for testing.
* patch 8.1.0974: cannot switch from terminal window to previous tabpagev8.1.0974Bram Moolenaar2019-02-221-4/+5
| | | | | Problem: Cannot switch from terminal window to previous tabpage. Solution: Make CTRL-W gT move to previous tabpage.
* patch 8.1.0972: cannot switch from terminal window to next tabpagev8.1.0972Bram Moolenaar2019-02-221-1/+5
| | | | | Problem: Cannot switch from terminal window to next tabpage. Solution: Make CTRL-W gt move to next tabpage.
* patch 8.1.0932: Farsi support is outdated and unusedv8.1.0932Bram Moolenaar2019-02-161-6/+0
| | | | | Problem: Farsi support is outdated and unused. Solution: Delete the Farsi support.
* patch 8.1.0914: code related to findfile() is spread outv8.1.0914Bram Moolenaar2019-02-131-315/+0
| | | | | | Problem: Code related to findfile() is spread out. Solution: Put findfile() related code into a new source file. (Yegappan Lakshmanan, closes #3934)
* patch 8.1.0892: failure when closing a window when location list is in usev8.1.0892Bram Moolenaar2019-02-101-2/+1
| | | | | | | Problem: Failure when closing a window when location list is in use. Solution: Handle the situation gracefully. Make sure memory for 'switchbuf' is not freed at the wrong time. (Yegappan Lakshmanan, closes #3928)
* patch 8.1.0864: cannot have a local value for 'scrolloff' and 'sidescrolloff'v8.1.0864Bram Moolenaar2019-01-311-1/+5
| | | | | | | Problem: Cannot have a local value for 'scrolloff' and 'sidescrolloff'. (Gary Holloway) Solution: Make 'scrolloff' and 'sidescrolloff' global-local. (mostly by Aron Widforss, closes #3539)
* patch 8.1.0826: too many #ifdefsv8.1.0826Bram Moolenaar2019-01-261-4/+0
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_VIRTUALEDIT. Adds about 10Kbyte to the code.
* patch 8.1.0810: too many #ifdefsv8.1.0810Bram Moolenaar2019-01-241-7/+2
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, part 4.