mirror of
https://github.com/neovim/neovim.git
synced 2026-02-20 01:09:56 +10:00
Problem: Highlight group id is not propagated to the end of the message call
stack, where ext_messages are emitted.
Solution: Refactor message functions to pass along highlight group id
instead of attr id.
23 lines
564 B
C
23 lines
564 B
C
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include "nvim/api/private/defs.h"
|
|
|
|
typedef struct {
|
|
String text;
|
|
int hl_id;
|
|
} HlMessageChunk;
|
|
|
|
typedef kvec_t(HlMessageChunk) HlMessage;
|
|
|
|
/// Message history for `:messages`
|
|
typedef struct msg_hist {
|
|
struct msg_hist *next; ///< Next message.
|
|
char *msg; ///< Message text.
|
|
const char *kind; ///< Message kind (for msg_ext)
|
|
int hl_id; ///< Message highlighting.
|
|
bool multiline; ///< Multiline message.
|
|
HlMessage multihl; ///< Multihl message.
|
|
} MessageHistoryEntry;
|