add support for negative arguments to :Tab
markt markt
2 files changed,
5 insertions(+),
2 deletions(-)
M
ChangeLog
→
ChangeLog
@@ -1,6 +1,9 @@
(Format: Year/Month/Day) Changes for 1.0rc3: *06/08/03: + * Added support for negative arguments to the `Tab' key command to count + backwards from the last tab in the group (Mark) + CurrentWindowCmd.cc * Updated documentation (Mark) fluxbox.txt fluxstyle.txt *06/08/02:
M
src/CurrentWindowCmd.cc
→
src/CurrentWindowCmd.cc
@@ -85,12 +85,12 @@ fbwindow().screen().sendToWorkspace(workspace_num, &fbwindow());
} void GoToTabCmd::real_execute() { - if (fbwindow().numClients() <= 1 || m_tab_num > fbwindow().numClients()) + int num = m_tab_num + (m_tab_num > 0 ? 0 : fbwindow().numClients() + 1); + if (num < 1 || num > fbwindow().numClients()) return; FluxboxWindow::ClientList::iterator it = fbwindow().clientList().begin(); - int num = m_tab_num; while (--num > 0) ++it; fbwindow().setCurrentClient(**it, true);