summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
Diffstat (limited to 'gtk')
-rw-r--r--gtk/window.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/window.c b/gtk/window.c
index 994c6a2ee..a3d6d4936 100644
--- a/gtk/window.c
+++ b/gtk/window.c
@@ -1154,12 +1154,12 @@ static void gui_window_place_caret(struct gui_window *g, int x, int y, int heigh
{
nsgtk_redraw_caret(g);
- height -= 2;
y += 1;
+ height -= 1;
if (y < clip->y0) {
- height -= clip->y0 - y + 1;
- y = clip->y0 - 1;
+ height -= clip->y0 - y;
+ y = clip->y0;
}
if (y + height > clip->y1) {