diff options
author | luukvbaal <luukvbaal@gmail.com> | 2025-01-03 17:25:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-03 08:25:06 -0800 |
commit | 21718c67dd9625c53d519a63725db55be6abe2ff (patch) | |
tree | 9624f56b55225c7fef1864024d25a12af137f4b4 /src/nvim/digraph.c | |
parent | c26951b1d6d4d7ff8fe431e8bfb16744ff56af1c (diff) | |
download | rneovim-21718c67dd9625c53d519a63725db55be6abe2ff.tar.gz rneovim-21718c67dd9625c53d519a63725db55be6abe2ff.tar.bz2 rneovim-21718c67dd9625c53d519a63725db55be6abe2ff.zip |
fix(messages): better formatting for ext_messages #31839
Problem: Message grid newline formatting based on `msg_col` is not
utilized with ext_messages.
Solution: Increment `msg_col` with the cell width of the chunk. Allowing
message code that uses `msg_col` to determine when to place a
newline to do so. E.g. when the message goes beyond `Columns`;
this is not necessarily where the ext_messages implementation
would want to place a newline, but it is a best guess. Message
parsing and manipulation is still possible.
Diffstat (limited to 'src/nvim/digraph.c')
-rw-r--r-- | src/nvim/digraph.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/digraph.c b/src/nvim/digraph.c index 876d38ea83..aaa77f5fcf 100644 --- a/src/nvim/digraph.c +++ b/src/nvim/digraph.c @@ -1714,6 +1714,7 @@ void listdigraphs(bool use_headers) { result_T previous = 0; + msg_ext_set_kind("list_cmd"); msg_putchar('\n'); const digr_T *dp = digraphdefault; |