summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2003-05-25 09:14:49 +0000
committersabetts <sabetts>2003-05-25 09:14:49 +0000
commitb6d1a9b5096e8e26acbe392ca44216d8573427e4 (patch)
tree0413acabd6dbebc9ef1c75c14d76a84ddd5276d8 /src/window.c
parent80406b0d4a10fd807be76df9eeabbd77af55e36e (diff)
downloadratpoison-b6d1a9b5096e8e26acbe392ca44216d8573427e4.zip
* src/bar.c (reset_alarm): new function
(show_bar): call reset_alarm() (count_lines): make function static. clean up code. (max_line_length): likewise (pos_in_line): likewise (line_beginning): likewise (draw_string): new static function (correct_mark): likewise (prepare_bar): likewise (get_mark_box): likewise (draw_inverse_box): likewise (draw_mark): likewise (update_last_message): likewise (marked_message): Move most of the code to seperate function calls. Call reset_alarm(), prepare_bar(), draw_string(), correct_mark(), draw_mark(), and update_last_message(). * src/actions.c (cmd_select): fix crash bug. * src/window.c (get_window_list): mark_end is the length of the string. Don't do a special case if the window list is being displayed as a column.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/window.c b/src/window.c
index 88403cf..9b75dab 100644
--- a/src/window.c
+++ b/src/window.c
@@ -661,12 +661,7 @@ get_window_list (char *fmt, char *delim, struct sbuf *buffer,
if (we->win == current_window())
{
- if(defaults.window_list_style == STYLE_ROW)
- {
- *mark_end = strlen (sbuf_get (buffer));
- } else {
- *mark_end = strlen (sbuf_get(buffer)) - *mark_start;
- }
+ *mark_end = strlen (sbuf_get (buffer));
}
}