diff options
author | sabetts <sabetts> | 2003-04-05 23:54:30 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2003-04-05 23:54:30 +0000 |
commit | 574a96e7beb091762046ce4b04fb41dcf82bc2fc (patch) | |
tree | fadcfb323cef8476900654f1032821b7bd368c95 /src/bar.h | |
parent | cee9fe0516fbc0946d568d7761d771cf204eb3b9 (diff) | |
download | ratpoison-574a96e7beb091762046ce4b04fb41dcf82bc2fc.zip |
* src/window.c (get_window_list): if wrap_window_list is on then
the end of the mark is the length of the buffer minus the start of
the mark.
* src/main.c (init_defaults): init wrap_window_list to 0.
* src/input.c (update_input_window): store the height in a
variable.
* src/data.h (struct rp_defaults): new member, wrap_window_list.
* src/bar.h [message]: wrap msg arg in parens.
(marked_wrapped_message): new prototype
* src/bar.c (bar_y): new argument, height. All callers updated.
(bar_y): use height in calculations.
(update_window_names): print a column of windows if
defaults.wrap_window_list is on.
(count_lines): new function
(max_line_length): likewise
(pos_in_line): likewise
(line_beginning): likewise
(marked_wrapped_message): likewise
* src/actions.c (user_commands): new commands 'verbexec' and
'defwrapwinlist'. Move @end take to after the def* commands.
(cmd_verbexec): new function. Added prototype.
(cmd_defwrapwinlist): likewise
Diffstat (limited to 'src/bar.h')
-rw-r--r-- | src/bar.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -25,11 +25,12 @@ void update_window_names (screen_info *s); int show_bar (screen_info *s); int hide_bar (screen_info *s); -int bar_y (screen_info *s); +int bar_y (screen_info *s, int height); int bar_x (screen_info *s, int width); -#define message(msg) marked_message (msg, 0, 0) +#define message(msg) marked_message ((msg), 0, 0) void marked_message (char *msg, int hl_start, int hl_end); +void marked_wrapped_message (char *msg, int hl_start, int hl_end); void marked_message_printf (int mark_start, int mark_end, char *fmt, ...); void show_last_message (); void free_bar (); |