glima pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=906e8009d5b3d3a3e740ca95ea8b0c4ee592235b

commit 906e8009d5b3d3a3e740ca95ea8b0c4ee592235b
Author: Gustavo Lima Chaves <[email protected]>
Date:   Sat Mar 15 01:55:33 2014 -0300

    Make term switching cyclic.
    
    The behavior for tab splits is kinda funky (it's kept equal after my
    commit) -- one returns to the last or 1st term of the split, when
    cycling reaches it, not the split it was in at the last time.
---
 src/bin/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bin/main.c b/src/bin/main.c
index 55ab553..e4b68af 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -436,7 +436,7 @@ _term_next_get(Term *termin)
    sp = _split_find(termin->wn->win, termin->term);
    l = eina_list_data_find_list(sp->terms, termin);
    if ((l) && (l->next)) return l->next->data;
-   if (!sp->parent) return NULL;
+   if (!sp->parent) return sp->terms->data;
    flat = _split_flatten(termin->wn->split);
    if (!flat) return NULL;
    l = eina_list_data_find_list(flat, sp);
@@ -467,7 +467,7 @@ _term_prev_get(Term *termin)
    sp = _split_find(termin->wn->win, termin->term);
    l = eina_list_data_find_list(sp->terms, termin);
    if ((l) && (l->prev)) return l->prev->data;
-   if (!sp->parent) return NULL;
+   if (!sp->parent) return eina_list_data_get(eina_list_last(sp->terms));
    flat = _split_flatten(termin->wn->split);
    if (!flat) return NULL;
    l = eina_list_data_find_list(flat, sp);

-- 


Reply via email to