summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--src/bar.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ef9fd2f..2549808 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2003-08-10 Shawn Betts <sabetts@sfu.ca>
+ * src/bar.c (get_mark_box): take the bar padding into account when
+ calculate the top of the highlight bar.
+
* src/window.c (give_window_focus): only save the pointer position
when win and last_win aren't the same window.
diff --git a/src/bar.c b/src/bar.c
index 22ce0b5..22f8e77 100644
--- a/src/bar.c
+++ b/src/bar.c
@@ -444,7 +444,7 @@ get_mark_box (char *msg, int mark_start, int mark_end,
}
*x = start;
- *y = (start_line - 1) * FONT_HEIGHT (defaults.font);
+ *y = (start_line - 1) * FONT_HEIGHT (defaults.font) + defaults.bar_y_padding;
*height = (end_line - start_line + 1) * FONT_HEIGHT (defaults.font);
}