diff options
Diffstat (limited to 'src')
-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); |