summaryrefslogtreecommitdiff
path: root/src/popupwin.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 9.0.1391: "clear" macros are not always usedv9.0.1391Yegappan Lakshmanan2023-03-071-2/+1
| | | | | | Problem: "clear" macros are not always used. Solution: Use ALLOC_ONE, VIM_CLEAR, CLEAR_POINTER and CLEAR_FIELD in more places. (Yegappan Lakshmanan, closes #12104)
* patch 9.0.1390: FOR_ALL_ macros are defined in an unexpected filev9.0.1390Yegappan Lakshmanan2023-03-071-2/+1
| | | | | | Problem: FOR_ALL_ macros are defined in an unexpected file. Solution: Move FOR_ALL_ macros to macros.h. Add FOR_ALL_HASHTAB_ITEMS. (Yegappan Lakshmanan, closes #12109)
* patch 9.0.1336: functions without arguments are not always declared properlyv9.0.1336Yegappan Lakshmanan2023-02-211-2/+2
| | | | | Problem: Functions without arguments are not always declared properly. Solution: Use "(void)" instead of "()". (Yegappan Lakshmanan, closes #12031)
* patch 9.0.1221: code is indented more than necessaryv9.0.1221Yegappan Lakshmanan2023-01-181-384/+385
| | | | | | Problem: Code is indented more than necessary. Solution: Use an early return where it makes sense. (Yegappan Lakshmanan, closes #11833)
* patch 9.0.0990: callback name argument is changed by setqflist()v9.0.0990Bram Moolenaar2022-12-021-1/+15
| | | | | | Problem: Callback name argument is changed by setqflist(). Solution: Use the expanded function name for the callback, do not store it in the argument. (closes #11653)
* patch 9.0.0751: 'scrolloff' does not work well with 'smoothscroll'v9.0.0751Bram Moolenaar2022-10-141-2/+1
| | | | | Problem: 'scrolloff' does not work well with 'smoothscroll'. Solution: Make positioning the cursor a bit better. Rename functions.
* patch 9.0.0683: cannot specify a time for :echowindowv9.0.0683Bram Moolenaar2022-10-071-1/+21
| | | | | | Problem: Cannot specify a time for :echowindow. Solution: A count can be used to specify the display time. Add popup_findecho().
* patch 9.0.0591: message window popup shows on only one tab pagev9.0.0591Bram Moolenaar2022-09-261-0/+2
| | | | | | Problem: Message window popup shows on only one tab page. (Naruhiko Nishino) Solution: Show the message window popup on all tab pages. (closes #11231)
* patch 9.0.0551: mode message is delayed when :echowin was usedv9.0.0551Bram Moolenaar2022-09-221-4/+15
| | | | | Problem: Mode message is delayed when :echowin was used. (Maxim Kim) Solution: Save and restore msg_didout in :echowin. (closes #11193)
* patch 9.0.0447: using :echowin while at the hit-enter prompt causes problemsv9.0.0447Bram Moolenaar2022-09-111-2/+25
| | | | | | Problem: Using :echowin while at the hit-enter prompt causes problems. Solution: Do not prompt for :echowin. Postpone showing the message window. Start the timer when the window is displayed.
* patch 9.0.0446: message window may be positioned too lowv9.0.0446Bram Moolenaar2022-09-111-1/+6
| | | | | Problem: Message window may be positioned too low. Solution: Compute cmdline_row before computing the position.
* patch 9.0.0431: current mode shows in message windowv9.0.0431Bram Moolenaar2022-09-091-1/+2
| | | | | Problem: Current mode shows in message window. Solution: Reset in_echowindow before redrawing. (issue #11094)
* patch 9.0.0359: error message for wrong argument type is not specificv9.0.0359Yegappan Lakshmanan2022-09-021-3/+1
| | | | | | Problem: Error message for wrong argument type is not specific. Solution: Include more information in the error. (Yegappan Lakshmanan, closes #11037)
* patch 9.0.0351: message window may obscure the command linev9.0.0351Bram Moolenaar2022-09-011-0/+3
| | | | | Problem: Message window may obscure the command line. Solution: Reduce the maximum height of the message window.
* patch 9.0.0350: :echowindow does not work in a compiled functionv9.0.0350Bram Moolenaar2022-09-011-0/+25
| | | | | Problem: :echowindow does not work in a compiled function. Solution: Handle the expression at compile time.
* patch 9.0.0340: the 'cmdheight' zero support causes too much troublev9.0.0340Bram Moolenaar2022-08-311-11/+1
| | | | | Problem: The 'cmdheight' zero support causes too much trouble. Solution: Revert support for 'cmdheight' being zero.
* patch 9.0.0335: checks for Dictionary argument often give a vague errorv9.0.0335Yegappan Lakshmanan2022-08-301-12/+3
| | | | | Problem: Checks for Dictionary argument often give a vague error message. Solution: Give a useful error message. (Yegappan Lakshmanan, closes #11009)
* patch 9.0.0321: cannot use the message popup window directlyv9.0.0321Bram Moolenaar2022-08-291-1/+2
| | | | | Problem: Cannot use the message popup window directly. Solution: Add ":echowindow".
* patch 9.0.0317: when updating the whole screen a popup may not be redrawnv9.0.0317Bram Moolenaar2022-08-291-0/+14
| | | | | | Problem: When updating the whole screen a popup may not be redrawn. Solution: Mark the screen and windows for redraw also when not clearing. Also mark popup windows for redraw.
* patch 9.0.0296: message in popup is shortened unnecessaryv9.0.0296Bram Moolenaar2022-08-281-1/+1
| | | | | | Problem: Message in popup is shortened unnecessary. Solution: Do not use 'showcmd' and 'ruler' for a message in the popup. Set the timer when unhiding the message popup.
* patch 9.0.0294: crash when 'cmdheight' is 0 and popup_clear() usedv9.0.0294Bram Moolenaar2022-08-281-3/+20
| | | | | | Problem: Crash when 'cmdheight' is 0 and popup_clear() used. Solution: Reset "message_win" when the message popup is cleared. Close the popup when 'cmdheight' is non-zero. Add a screendump test.
* patch 9.0.0288: when 'cmdheight' is zero some messages are not displayedv9.0.0288Bram Moolenaar2022-08-271-13/+123
| | | | | Problem: When 'cmdheight' is zero some messages are not displayed. Solution: Use a popup notification window.
* patch 9.0.0206: redraw flags are not named specificallyv9.0.0206Bram Moolenaar2022-08-141-16/+16
| | | | | Problem: Redraw flags are not named specifically. Solution: Prefix "UPD_" to the flags, for UPDate_screen().
* patch 9.0.0170: various minor code formatting issuesv9.0.0170Bram Moolenaar2022-08-081-1/+1
| | | | | Problem: Various minor code formatting issues. Solution: Improve code formatting.
* patch 9.0.0067: cannot show virtual textv9.0.0067Bram Moolenaar2022-07-251-1/+1
| | | | | Problem: Cannot show virtual text. Solution: Initial changes for virtual text support, using text properties.
* patch 9.0.0063: too many type casts for dict_get functionsv9.0.0063Bram Moolenaar2022-07-231-27/+26
| | | | | Problem: Too many type casts for dict_get functions. Solution: Change the key argument from "char_u *" to "char *".
* patch 8.2.5138: various small issuesv8.2.5138Bram Moolenaar2022-06-201-1/+1
| | | | | Problem: Various small issues. Solution: Various small improvments.
* patch 8.2.5045: can escape a terminal popup window when the job is finishedv8.2.5045Bram Moolenaar2022-05-301-1/+0
| | | | | | Problem: Can escape a terminal popup window when the job is finished. Solution: Only check for a finished job where it is relevant. (closes #10253)
* patch 8.2.5042: scrollbar thumb in tall scrolled popup not visiblev8.2.5042Bram Moolenaar2022-05-301-1/+1
| | | | | Problem: Scrollbar thumb in tall scrolled popup not visible. Solution: Show at least one thumb character. (fixes 10492)
* patch 8.2.5040: scrollbar thumb in scrolled popup not visiblev8.2.5040Bram Moolenaar2022-05-291-0/+5
| | | | | Problem: Scrollbar thumb in scrolled popup not visible. Solution: Show at least one thumb character. (fixes 10492)
* patch 8.2.5039: confusing error if first argument of popup_create() is wrongv8.2.5039Bram Moolenaar2022-05-291-2/+4
| | | | | Problem: Confusing error if first argument of popup_create() is wrong. Solution: Give a more informative error.
* patch 8.2.5038: a finished terminal in a popup window does not show scrollbarv8.2.5038Bram Moolenaar2022-05-291-9/+24
| | | | | | Problem: A finished terminal in a popup window does not show a scrollbar. Solution: Show the scrollbar if the terminal job is finished. (closes #10497)
* patch 8.2.4913: popup_hide() does not always have effectv8.2.4913Bram Moolenaar2022-05-081-3/+8
| | | | | Problem: Popup_hide() does not always have effect. Solution: Add the POPF_HIDDEN_FORCE flag. (closes #10376)
* patch 8.2.4799: popup does not use correct toplinev8.2.4799LemonBoy2022-04-201-1/+1
| | | | | Problem: Popup does not use correct topline. Solution: Also add one when firstline is negative. (closes #10229)
* patch 8.2.4685: when a swap file is found for a popup there is no dialogv8.2.4685Bram Moolenaar2022-04-041-0/+2
| | | | | | Problem: When a swap file is found for a popup there is no dialog and the buffer is loaded anyway. Solution: Silently load the buffer read-only. (closes #10073)
* patch 8.2.4683: verbose check with dict_find() to see if a key is presentv8.2.4683Yegappan Lakshmanan2022-04-041-1/+1
| | | | | Problem: Verbose check with dict_find() to see if a key is present. Solution: Add dict_has_key(). (Yegappan Lakshmanan, closes #10074)
* patch 8.2.4668: buffer allocation failures insufficiently testedv8.2.4668Yegappan Lakshmanan2022-04-021-0/+3
| | | | | | Problem: Buffer allocation failures insufficiently tested. Solution: Add tests for memory allocation failures. (Yegappan Lakshmanan, closes #10064)
* patch 8.2.4665: popup with "minwidth" and scrollbar not updated properlyv8.2.4665Bram Moolenaar2022-04-021-5/+33
| | | | | Problem: Popup with "minwidth" and scrollbar not updated properly. Solution: Adjust the computation if the window width. (closes #10061)
* patch 8.2.4619: mapping is cancelled when mouse moves and popup is visiblev8.2.4619Bram Moolenaar2022-03-241-1/+26
| | | | | | Problem: Mapping is cancelled when mouse moves and popup is visible. Solution: Only generate mouse moved events when a popup may use them. (closes #10004)
* patch 8.2.4569: Coverity warning for not using a return valuev8.2.4569Bram Moolenaar2022-03-151-1/+1
| | | | | Problem: Coverity warning for not using a return value. Solution: Add "(void)".
* patch 8.2.4255: theoretical computation overflowv8.2.4255=?UTF-8?q?Dundar=20G=C3=B6c?=2022-01-291-3/+4
| | | | | Problem: Theoretical computation overflow. Solution: Perform multiplication in a wider type. (closes #9657)
* patch 8.2.4022: two error messages in the wrong filev8.2.4022Bram Moolenaar2022-01-061-3/+3
| | | | | Problem: Two error messages in the wrong file. Solution: Use the error message from errors.h.
* patch 8.2.4010: error messages are spread outv8.2.4010Bram Moolenaar2022-01-051-2/+2
| | | | | Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
* patch 8.2.3986: error messages are spread outv8.2.3986Bram Moolenaar2022-01-021-1/+1
| | | | | Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
* patch 8.2.3967: error messages are spread outv8.2.3967Bram Moolenaar2022-01-011-9/+9
| | | | | Problem: Error messages are spread out. Solution: Move more errors to errors.h.
* patch 8.2.3961: error messages are spread outv8.2.3961Bram Moolenaar2021-12-311-8/+8
| | | | | Problem: Error messages are spread out. Solution: Move more errors to errors.h.
* patch 8.2.3874: cannot highlight the number column for a signv8.2.3874James McCoy2021-12-221-1/+1
| | | | | Problem: Cannot highlight the number column for a sign. Solution: Add the "numhl" argument. (James McCoy, closes #9381)
* patch 8.2.3763: when editing the cmdline a callback may cause a scroll upv8.2.3763Bram Moolenaar2021-12-091-1/+1
| | | | | | | Problem: When editing the command line a FocusLost callback may cause the screen to scroll up. Solution: Do not redraw at the last line but at the same place where the command line was before. (closes #9295)
* patch 8.2.3750: error messages are everywherev8.2.3750Bram Moolenaar2021-12-051-1/+1
| | | | | Problem: Error messages are everywhere. Solution: Move more error messages to errors.h and adjust the names.
* patch 8.2.3697: cannot drag a popup without a borderv8.2.3697Bram Moolenaar2021-11-291-2/+12
| | | | | Problem: Cannot drag a popup without a border. Solution: Add the "dragall" option. (closes #9218)