From c939f2ee45a585f34d1f260d90523faf71e057f6 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 6 Jan 2013 15:33:50 -0800 Subject: Fix for an out-of-range exception when resizing the window during funced Addresses https://github.com/fish-shell/fish-shell/issues/498 --- screen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screen.cpp b/screen.cpp index be2f0203..77d9b795 100644 --- a/screen.cpp +++ b/screen.cpp @@ -481,8 +481,8 @@ static void s_desired_append_char(screen_t *s, { int i; /* Current line is definitely hard wrapped */ - s->desired.line(s->desired.cursor.y).is_soft_wrapped = false; s->desired.create_line(s->desired.line_count()); + s->desired.line(s->desired.cursor.y).is_soft_wrapped = false; s->desired.cursor.y++; s->desired.cursor.x=0; for (i=0; i < prompt_width+indent*INDENT_STEP; i++) -- cgit v1.2.3