From 52690406faf59fd0a15652cb7997567228b9330a Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 18 Jun 2012 17:37:03 -0400 Subject: Removed ncurses splitting for now; src/textadept.c --- src/textadept.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'src') diff --git a/src/textadept.c b/src/textadept.c index 2e76cfd6..f6ed2166 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -1835,22 +1835,10 @@ static void split_view(Scintilla *view, int vertical) { gtk_paned_set_position(GTK_PANED(pane), middle); gtk_widget_show_all(pane); g_object_unref(view); + focus_view(view2); #elif NCURSES - WINDOW *win = scintilla_get_window(view); - int x, y; - getbegyx(win, y, x); - int width = getmaxx(win) - x, height = getmaxy(win) - y; - wresize(win, vertical ? height : height / 2, vertical ? width / 2 : width); - Scintilla *view2 = new_view(curdoc); - wresize(scintilla_get_window(view2), vertical ? height : height / 2 - 1, - vertical ? width / 2 - 1 : width); - mvwin(scintilla_get_window(view2), vertical ? y : y + height / 2 + 1, - vertical ? x + width / 2 + 1 : x); - vertical ? mvvline(y, x + width / 2, '|', height) - : mvhline(y + height / 2, x, '-', width); - // TODO: additional splitting. + // TODO: split. #endif - focus_view(view2); SS(view2, SCI_SETSEL, anchor, current_pos); int new_first_line = SS(view2, SCI_GETFIRSTVISIBLELINE, 0, 0); -- cgit v1.2.3