aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/message.c
Commit message (Collapse)AuthorAge
...
* Merge #8218 'Fix errors reported by PVS'Justin M. Keyes2018-04-27
|\ | | | | closes #4983
| * message: Fix PVS/V547: c is never equal to KS_ZEROZyX2018-04-15
| | | | | | | | | | | | | | | | | | | | | | | | | | Since `c` there is a result of evaluating `TO_SPECIAL` macros it may be only one of the following three things: 1. K_SPECIAL 2. K_ZERO (note: not KS_ZERO) 3. negative integer resulting from evaluating TERMCAP2KEY macro. All variants here are negative and thus fail next !IS_SPECIAL(c) check (negative is special). If `c` was really NUL it would fall into the `!IS_SPECIAL(c)` block and use whatever character is third in `<80>{a}{b}` combo. For `<Nul>` it is X (`<80><ff>X`).
* | Merge branch 'master' into s-dash-stdinb-r-o-c-k2018-04-14
|\|
| * msg: do not scroll entire screen (#8088)Björn Linse2018-03-31
| |
| * vim-patch:8.0.0184: fix ex-mode exit code #7943sohnryang2018-03-24
| | | | | | | | | | | | | | | | | | Problem: When in Ex mode and an error is caught by try-catch, Vim still exits with a non-zero exit code. Solution: Don't set ex_exitval when inside a try-catch. (partly by Christian Brabandt) https://github.com/vim/vim/commit/2b7bc567b9238aaac682236cb4f727d0376e1302
| * message: don't output unprintable chars to screenBjörn Linse2018-03-04
| | | | | | | | fixes #7586 #8070
| * vim-patch:8.0.0074Michael Schupikov2017-12-15
| | | | | | | | | | | | | | | | | | | | Problem: Cannot make Vim fail on an internal error. Solution: Add IEMSG() and IEMSG2(). (Domenique Pelle) Avoid reporting an internal error without mentioning where. https://github.com/vim/vim/commit/95f096030ed1a8afea028f2ea295d6f6a70f466f Signed-off-by: Michael Schupikov <michael@schupikov.de>
| * msg_outtrans_special(): handle NULLJustin M. Keyes2017-12-05
| | | | | | | | This is convenient for terminfo_info_msg().
| * msg_outtrans_special(): `const` some stringsJustin M. Keyes2017-12-05
| |
| * str2specialbuf(): fix comparisonJustin M. Keyes2017-12-05
| | | | | | | | regression by 832c158a663c
* | Merge branch 'master' into s-dash-stdinZyX2017-12-03
|\|
| * Merge branch 'master' into colored-cmdlineZyX2017-08-06
| |\
| | * input: skip dialogs if no UI is activeJustin M. Keyes2017-08-06
| | | | | | | | | | | | | | | | | | | | | Treat dialogs in the same way as "silent mode" (`nvim -es`). References #1984 References #3901
| * | message: Only require second (format) argument to be not NULLZyX2017-07-26
| | |
| * | Merge branch 'master' into colored-cmdlineZyX2017-07-15
| |\|
| | * message: Fix `:echo "\x80"` printing `~@<80>`ZyX2017-07-04
| | |
| | * message: Add support for replacing `<` to str2specialZyX2017-07-02
| | |
| | * *: Adjust usages of modified functionsZyX2017-07-02
| | |
| | * message: Refactor str2specialbufZyX2017-07-02
| | | | | | | | | | | | Does not alter its usages.
| | * message: Refactor str2special_save and str2specialZyX2017-07-02
| | | | | | | | | | | | Does not alter their usages as well.
| * | ex_getln: Fix “echoerr msg not shown” problemZyX2017-06-28
| |/ | | | | | | | | This also attempted to fix problem with cancelling input() on error by avoiding standard error printing facilities (assumed thrown error message is the problem), but with no luck so far.
| * vim-patch:7.4.2263James McCoy2017-04-29
| | | | | | | | | | | | | | | | | | Problem: :filter does not work for many commands. Can only get matching messages. Solution: Make :filter work for :command, :map, :list, :number and :print. Make ":filter!" show non-matching lines. https://github.com/vim/vim/commit/d29459baa61819e59961804ed258efac5733ec70
| * vim-patch:7.4.2244James McCoy2017-04-29
| | | | | | | | | | | | | | | | Problem: Adding pattern to ":oldfiles" is not a generic solution. Solution: Add the ":filter /pat/ cmd" command modifier. Only works for some commands right now. https://github.com/vim/vim/commit/7b668e83d0635d082b7ec90d7d2aa30a9d7d8928
| * event: Remove "priority" concept.Justin M. Keyes2017-04-28
| | | | | | | | It was replaced by the "child queue" concept (MultiQueue).
| * *: Add comment to all C filesZyX2017-04-19
| |
| * message: Some more has_mbyte/enc_utf8 removalZyX2017-04-16
| |
| * message: Remove some enc_utf8/… checksZyX2017-04-16
| |
| * lint: fix clint errors around mb_tolower callsBjörn Linse2017-04-10
| |
| * mbyte: replace vim_tolower with mb_tolower handling locale correctlyBjörn Linse2017-04-10
| |
| * fixup!ZyX2017-04-03
| |
| * message: Do not use IObuff in emsgfZyX2017-04-03
| |
| * message: Remove incorrect assertionZyX2017-03-29
| | | | | | | | | | | | It was there only to prove that *now* `len` argument is not used to forbid putting message into history (i.e. that Neovim behaviour did not change). After this commit it should be possible to use msg_puts_attr_len with len>=0 to put message into history should new code need this.
| * message: Revise maxlen argument in msg_puts_attr_lenZyX2017-03-29
| | | | | | | | | | | | | | `attr` argument is enough to forbid putting message in history. Also forbid strings with NUL before `len` just in case (it appears that this does not ever happen).
| * eval,*: Move get_tv_string to typval.cZyX2017-03-29
| | | | | | | | Function was renamed and changed to return `const char *`.
| * vim-patch:7.4.2349 (#6368)lonerover2017-03-26
| | | | | | | | | | | | Problem: Valgrind reports using uninitialzed memory. (Dominique Pelle) Solution: Check the length before checking for a NUL. https://github.com/vim/vim/commit/2321ca2a78286bc026fa7f407281ddbeb04114bb
| * refactor: Remove allow_keys global (#6346)Matthew Malcomson2017-03-25
| | | | | | | | | | | | * The allow_keys global is unused in nvim, remove it * clint
* | main: Translate full -s error message, not part of itZyX2017-03-19
|/
* lintJames McCoy2017-03-06
|
* vim-patch:7.4.2097James McCoy2017-03-06
| | | | | | | Problem: Warning from 64 bit compiler. Solution: use size_t instead of int. (Mike Williams) https://github.com/vim/vim/commit/d4f31dc45482e8db527ca044b9c3436b1e750006
* vim-patch:7.4.2068James McCoy2017-03-06
| | | | | | | | | Problem: Not all arguments of trunc_string() are tested. Memory access error when running the message tests. Solution: Add another test case. (Yegappan Lakshmanan) Make it easy to run unittests with valgrind. Fix the access error. https://github.com/vim/vim/commit/b9644433d2728e99fab874e5e33147ad95d23a31
* vim-patch:7.4.2051James McCoy2017-03-06
| | | | | | | Problem: No proper testing of trunc_string(). Solution: Add a unittest for message.c. https://github.com/vim/vim/commit/502ae4ba63561c98ac69af26cd9883bfd18d225f
* message.c: fix dead assignment by removing dead codeSander Bosma2017-02-20
| | | | | `enc_dbcs` and `enc_utf8` are deprecated (globals.h), so the second branch is always taken.
* Merge #6110 'refactor: Move vim_*printf to strings.c'.Justin M. Keyes2017-02-17
|\
| * message,strings: Move vim_*printf functions to strings.cZyX2017-02-14
| | | | | | | | Allows eval/typval.h to #include message.h.
* | Merge #6114 'Partial string handling refactoring'.Justin M. Keyes2017-02-17
|\ \ | |/ |/|
| * *: Fix linter errorsZyX2017-02-15
| |
| * *: Partial string handling refactoringZyX2017-02-15
|/ | | | | | | | Main points: - Replace `char_u` with `char` in some cases. - Remove `str[len] = NUL` hack in some cases when `str` may be considered `const`.
* eval: Add id() function and make printf("%p") return something useful (#6095)Nikolai Aleksandrovich Pavlov2017-02-11
|
* execute: Correctly capture output with highlight attributesJames McCoy2017-02-01
| | | | Closes #5422
* coverity/133853: Out-of-bounds accessJustin M. Keyes2017-01-23
|