diff --git a/accessible.c b/accessible.c index e52efb7..1da7ad0 100644 --- a/accessible.c +++ b/accessible.c @@ -185,7 +185,7 @@ static gunichar v3270_accessible_get_character_at_offset(AtkText *atk_text, gint if(widget == NULL) { H3270 * host = v3270_get_session(widget); - gchar * text = lib3270_get_text(host,offset,1); + gchar * text = lib3270_get_text(host,offset,1,'\n'); if(text) { @@ -346,7 +346,7 @@ static gchar * v3270_accessible_get_text_at_offset(AtkText *atk_text, gint offse case ATK_TEXT_BOUNDARY_CHAR: // Boundary is the boundary between characters // (including non-printing characters) - text = lib3270_get_text(host,offset,1); + text = lib3270_get_text(host,offset,1,'\n'); break; case ATK_TEXT_BOUNDARY_WORD_START: // Boundary is the start (i.e. first character) of a word. @@ -373,7 +373,7 @@ static gchar * v3270_accessible_get_text_at_offset(AtkText *atk_text, gint offse pos = (offset/cols)*cols; if(pos == offset) offset++; - text = lib3270_get_text(host,pos,(offset-pos)); + text = lib3270_get_text(host,pos,(offset-pos),'\n'); break; @@ -426,7 +426,7 @@ static gchar * v3270_accessible_get_text(AtkText *atk_text, gint start_pos, gint if(!lib3270_connected(host)) return g_strdup( "" ); - text = lib3270_get_text(host,start_pos,end_pos < start_pos ? -1 : (end_pos - start_pos)); + text = lib3270_get_text(host,start_pos,end_pos < start_pos ? -1 : (end_pos - start_pos),'\n'); if(text) { diff --git a/selection.c b/selection.c index 6595ba8..d2d836e 100644 --- a/selection.c +++ b/selection.c @@ -99,7 +99,7 @@ gchar * v3270_get_text(GtkWidget *widget, int offset, int len) terminal = GTK_V3270(widget); - str = lib3270_get_text(terminal->host, offset, len); + str = lib3270_get_text(terminal->host, offset, len, '\n'); if(!str) return NULL; diff --git a/widget.c b/widget.c index eb1c36f..52bb291 100644 --- a/widget.c +++ b/widget.c @@ -826,7 +826,7 @@ static void changed(H3270 *session, int offset, int len) { // Get new text, notify atk gsize bytes_written = 0; - char * text = lib3270_get_text(session,offset,len); + char * text = lib3270_get_text(session,offset,len,'\n'); if(text) { -- libgit2 0.21.2