History

msg: allow to truncate the message to terminal width

Kacper Michajłow committed 2 years ago

Commit bf025cd1 parent 95f00469 files · +106 −15Browse files

Showing the changes to player/command.c (1 of 9 files). Show all

Unified · Split

player/command.c+8−0
@@ -2926,6 +2926,12 @@ static int mp_property_osd_ass(void *ctx, struct m_property *prop, · 2925 unmodified lines
2926 return m_property_read_sub(props, action, arg);2926 return m_property_read_sub(props, action, arg);
2927}2927}
2928 2928
2929static int mp_property_term_clip(void *ctx, struct m_property *prop,
2930 int action, void *arg)
2931{
2932 return m_property_strdup_ro(action, arg, TERM_MSG_0);
2933}
2934
2929static int mp_property_term_size(void *ctx, struct m_property *prop,2935static int mp_property_term_size(void *ctx, struct m_property *prop,
2930 int action, void *arg)2936 int action, void *arg)
2931{2937{
@@ -4159,6 +4165,8 @@ static const struct m_property mp_properties_base[] = { · 1227 unmodified lines
4159 {"osd-sym-cc", mp_property_osd_sym},4165 {"osd-sym-cc", mp_property_osd_sym},
4160 {"osd-ass-cc", mp_property_osd_ass},4166 {"osd-ass-cc", mp_property_osd_ass},
4161 4167
4168 {"term-clip-cc", mp_property_term_clip},
4169
4162 {"mouse-pos", mp_property_mouse_pos},4170 {"mouse-pos", mp_property_mouse_pos},
4163 {"touch-pos", mp_property_touch_pos},4171 {"touch-pos", mp_property_touch_pos},
4164 4172

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t