diff options
author | 2012-06-18 17:37:03 -0400 | |
---|---|---|
committer | 2012-06-18 17:37:03 -0400 | |
commit | 52690406faf59fd0a15652cb7997567228b9330a (patch) | |
tree | e9a3acd6752cf99837d1ccaeca0f60c7913cec39 /src/textadept.c | |
parent | 742001db54df386553de6c72bec85de24201042e (diff) | |
download | textadept-52690406faf59fd0a15652cb7997567228b9330a.tar.gz textadept-52690406faf59fd0a15652cb7997567228b9330a.zip |
Removed ncurses splitting for now; src/textadept.c
Diffstat (limited to 'src/textadept.c')
-rw-r--r-- | src/textadept.c | 16 |
1 files changed, 2 insertions, 14 deletions
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); |