summaryrefslogtreecommitdiffstats
path: root/src/message.c
AgeCommit message (Collapse)Author
2023-11-23patch 9.0.2125: File info disappears when 'cmdheight' has decreasedv9.0.2125zeertzjq
Problem: File info disappears immediately when 'cmdheight' has just decreased due to switching tabpage and 'shortmess' doesn't contain 'o' or 'O'. Solution: Make sure msg_row isn't smaller than cmdline_row. fixes: #13560 closes: #13561 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-10-02patch 9.0.1969: [security] buffer-overflow in trunc_string()v9.0.1969Christian Brabandt
Problem: buffer-overflow in trunc_string() Solution: Add NULL at end of buffer Currently trunc_string() assumes that when the string is too long, buf[e-1] will always be writeable. But that assumption may not always be true. The condition currently looks like this else if (e + 3 < buflen) [...] else { // can't fit in the "...", just truncate it buf[e - 1] = NUL; } but this means, we may run into the last else clause with e still being larger than buflen. So a buffer overflow occurs. So instead of using `buf[e - 1]`, let's just always truncate at `buf[buflen - 1]` which should always be writable. Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-24patch 9.0.1938: multispace wrong when scrolling horizontallyv9.0.1938zeertzjq
Problem: multispace wrong when scrolling horizontally Solution: Update position in "multispace" or "leadmultispace" also in skipped chars. Reorder conditions to be more consistent. closes: #13145 closes: #13147 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2023-08-30patch 9.0.1826: keytrans() doesn't translate recorded key typed in a GUIv9.0.1826zeertzjq
Problem: keytrans() doesn't translate recorded key typed in a GUI Solution: Handle CSI like K_SPECIAL, like in mb_unescape() closes: #12964 closes: #12966 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2023-08-13Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)Christian Brabandt
* Dedicate upcoming Vim 9.1 to Bram Also replace in a few more places Brams email address and mention new maintainers. * Remove Bram from any Maintainer role * runtime: Align Header * it's mailing list not mailinglist
2023-06-15patch 9.0.1635: error message is cleared when removing mode messagev9.0.1635Bram Moolenaar
Problem: Error message is cleared when removing mode message. Solution: Also reset flags when the message is further down.
2023-06-15patch 9.0.1634: message is cleared when removing mode messagev9.0.1634Bram Moolenaar
Problem: Message is cleared when removing mode message (Gary Johnson). Solution: Do not clear the command line after displaying a message.
2023-05-24patch 9.0.1576: users may not know what to do with an internal errorv9.0.1576Bram Moolenaar
Problem: Users may not know what to do with an internal error. Solution: Add a translated message with instructions.
2023-02-16patch 9.0.1314: :messages behavior depends on 'fileformat' of current bufferv9.0.1314cero1988
Problem: :messages behavior depends on 'fileformat' of current buffer. Solution: Pass the buffer pointer to where it is used. (Mirko Ceroni, closes #11995)
2023-02-01patch 9.0.1271: using sizeof() and subtract array size is trickyv9.0.1271zeertzjq
Problem: Using sizeof() and subtract array size is tricky. Solution: Use offsetof() instead. (closes #11926)
2023-01-14patch 9.0.1196: code is indented more than necessaryv9.0.1196Yegappan Lakshmanan
Problem: Code is indented more than necessary. Solution: Use an early return where it makes sense. (Yegappan Lakshmanan, closes #11813)
2023-01-04patch 9.0.1144: reading beyond textv9.0.1144Bram Moolenaar
Problem: Reading beyond text. Solution: Add strlen_maxlen() and use it.
2022-11-30patch 9.0.0978: build errors without the +channel featurev9.0.0978Bram Moolenaar
Problem: Build errors without the +channel feature. (John Marriott) Solution: Adjust #ifdefs.
2022-11-30patch 9.0.0977: it is not easy to see what client-server commands are doingv9.0.0977Bram Moolenaar
Problem: It is not easy to see what client-server commands are doing. Solution: Add channel log messages if ch_log() is available. Move the channel logging and make it available with the +eval feature.
2022-11-29patch 9.0.0972: build failure on some systemsv9.0.0972Bram Moolenaar
Problem: Build failure on some systems. Solution: Adjust #ifdefs related to the termresponse feature.
2022-11-18patch 9.0.0904: various comment and indent flawsv9.0.0904Bram Moolenaar
Problem: Various comment and indent flaws. Solution: Improve comments and indenting.
2022-10-13patch 9.0.0747: too many #ifdefsv9.0.0747Martin Tournoij
Problem: Too many #ifdefs. Solution: Gradudate the +cmdline_info feature. (Martin Tournoij, closes #11330)
2022-09-26patch 9.0.0595: extra newline in messages after a verbose shell messagev9.0.0595Bram Moolenaar
Problem: Extra newline in messages after a verbose shell message. Solution: Output the newline with msg_putchar_attr(). (closes #11233) Make it possible to filter a screendump before comparing it.
2022-09-26patch 9.0.0592: display not cleared when scrolling back in messagesv9.0.0592Bram Moolenaar
Problem: Display not cleared when scrolling back in messages, a background color is set and t_ut is empty. Solution: Clear to the end of the display if needed. (closes #8973)
2022-09-20patch 9.0.0511: unnecessary scrolling for message of only one linev9.0.0511zeertzjq
Problem: Unnecessary scrolling for message of only one line. Solution: Only set msg_scroll when needed. (closes #11178)
2022-09-12patch 9.0.0449: there is no easy way to translate a key code into a stringv9.0.0449zeertzjq
Problem: There is no easy way to translate a string with a key code into a readable string. Solution: Add the keytrans() function. (closes #11114)
2022-09-11patch 9.0.0447: using :echowin while at the hit-enter prompt causes problemsv9.0.0447Bram Moolenaar
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.
2022-09-01patch 9.0.0352: using :echowindow in a timer clears part of messagev9.0.0352Bram Moolenaar
Problem: using :echowindow in a timer clears part of message Solution: Do not use msg_clr_eos().
2022-08-31patch 9.0.0340: the 'cmdheight' zero support causes too much troublev9.0.0340Bram Moolenaar
Problem: The 'cmdheight' zero support causes too much trouble. Solution: Revert support for 'cmdheight' being zero.
2022-08-30patch 9.0.0329: ":highlight" hangs when 'cmdheight' is zerov9.0.0329Bram Moolenaar
Problem: ":highlight" hangs when 'cmdheight' is zero. Solution: Add to msg_col when using the message window. (closes #11014)
2022-08-29patch 9.0.0321: cannot use the message popup window directlyv9.0.0321Bram Moolenaar
Problem: Cannot use the message popup window directly. Solution: Add ":echowindow".
2022-08-29patch 9.0.0318: clearing screen causes flickerv9.0.0318Bram Moolenaar
Problem: Clearing screen causes flicker. Solution: Do not clear but redraw in more cases. Add () to "wait_return".
2022-08-29patch 9.0.0315: shell command is displayed in message windowv9.0.0315Bram Moolenaar
Problem: Shell command is displayed in message window. Solution: Do not echo the shell command in the message window.
2022-08-28patch 9.0.0310: output of :messages dissappears when cmdheight is zerov9.0.0310Bram Moolenaar
Problem: Output of :messages dissappears when cmdheight is zero. Solution: Do not use the messages window for :messages. Make Esc close the messages window.
2022-08-28patch 9.0.0308: when cmdheight is zero the attention prompt doesn't showv9.0.0308Bram Moolenaar
Problem: When cmdheight is zero the attention prompt doesn't show. Solution: Do not use the message window for a prompt.
2022-08-28patch 9.0.0306: buffer write message is two lines in message popup windowv9.0.0306Bram Moolenaar
Problem: Buffer write message is two lines in message popup window. Solution: Overwrite message if "msg_scroll" is off.
2022-08-28patch 9.0.0301: the message window popup is delayed after an error messagev9.0.0301Bram Moolenaar
Problem: The message window popup is delayed after an error message. Solution: Do not set emsg_on_display when using the message window.
2022-08-28patch 9.0.0298: compiler warning for size_t to int conversionv9.0.0298Wilhelm Payne
Problem: Compiler warning for size_t to int conversion. Solution: Add a type cast. (Wilhelm Payne, closes #11000)
2022-08-28patch 9.0.0296: message in popup is shortened unnecessaryv9.0.0296Bram Moolenaar
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.
2022-08-27patch 9.0.0290: compiler warning for variable set but not usedv9.0.0290Bram Moolenaar
Problem: Compiler warning for variable set but not used. Solution: Add #ifdef.
2022-08-27patch 9.0.0289: invalid memory writev9.0.0289Bram Moolenaar
Problem: Invalid memory write. Solution: Do not put NUL in a static string.
2022-08-27patch 9.0.0288: when 'cmdheight' is zero some messages are not displayedv9.0.0288Bram Moolenaar
Problem: When 'cmdheight' is zero some messages are not displayed. Solution: Use a popup notification window.
2022-08-22patch 9.0.0245: mechanism to prevent recursive screen updating is incompletev9.0.0245Bram Moolenaar
Problem: Mechanism to prevent recursive screen updating is incomplete. Solution: Add "redraw_not_allowed" and set it in build_stl_str_hl(). (issue #10952)
2022-08-19patch 9.0.0227: cannot read error message when abort() is calledv9.0.0227Bram Moolenaar
Problem: Cannot read error message when abort() is called. Solution: Output a newline before calling abort().
2022-08-14patch 9.0.0207: stacktrace not shown when debuggingv9.0.0207zeertzjq
Problem: Stacktrace not shown when debugging. Solution: Set msg_scroll in msg_source(). (closes #10917)
2022-08-14patch 9.0.0206: redraw flags are not named specificallyv9.0.0206Bram Moolenaar
Problem: Redraw flags are not named specifically. Solution: Prefix "UPD_" to the flags, for UPDate_screen().
2022-07-30patch 9.0.0114: the command line takes up space even when not usedv9.0.0114Shougo Matsushita
Problem: The command line takes up space even when not used. Solution: Allow for 'cmdheight' to be set to zero. (Shougo Matsushita, closes #10675, closes #940)
2022-07-28patch 9.0.0099: scrollback can be wrong after redrawing the command linev9.0.0099zeertzjq
Problem: Scrollback can be wrong after redrawing the command line. Solution: Clear unfinished scrollback when redrawing. (closes #10807)
2022-07-25patch 9.0.0071: command overlaps with printed text in scrollbackv9.0.0071zeertzjq
Problem: Command overlaps with printed text in scrollback. Solution: Clear until end-of-line and use correct message chunk. (closes #10765, closes #10764)
2022-07-06patch 9.0.0044: typos in comments, wrapping linesv9.0.0044Bram Moolenaar
Problem: Typos in comments, wrapping lines. Solution: Adjust comments. Wrap lines.
2022-06-29patch 9.0.0009: going past the end of a menu item with only modifierv9.0.0009Bram Moolenaar
Problem: Going past the end of a menu item with only modifier. Solution: Check for NUL.
2022-06-26patch 8.2.5161: might still access invalid memoryv8.2.5161Bram Moolenaar
Problem: Might still access invalid memory. Solution: Add extra check for negative value.
2022-06-15patch 8.2.5097: using uninitialized memory when using 'listchars'v8.2.5097Bram Moolenaar
Problem: Using uninitialized memory when using 'listchars'. Solution: Use the length returned by mb_char2bytes(). (closes #10576)
2022-06-13patch 8.2.5084: when the GUI shows a dialog tests get stuckv8.2.5084Bram Moolenaar
Problem: When the GUI shows a dialog tests get stuck. Solution: Add the --gui-dialog-file argument.
2022-06-09patch 8.2.5070: unnecessary codev8.2.5070zeertzjq
Problem: Unnecessary code. Solution: Remove code that isn't needed. (closes #10534)