Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
poezio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
205
Issues
205
List
Boards
Labels
Service Desk
Milestones
Merge Requests
10
Merge Requests
10
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poezio
poezio
Commits
61548724
Commit
61548724
authored
Jan 17, 2011
by
louiz’
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
/win's arg can be a part of the tab's name
parent
b1996693
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
src/core.py
src/core.py
+11
-8
No files found.
src/core.py
View file @
61548724
...
...
@@ -1009,20 +1009,23 @@ class Core(object):
try
:
nb
=
int
(
args
[
0
])
except
ValueError
:
self
.
command_help
(
'win'
)
return
nb
=
arg
.
strip
()
if
self
.
current_tab
().
nb
==
nb
:
return
self
.
previous_tab_nb
=
self
.
current_tab
().
nb
self
.
current_tab
().
on_lose_focus
()
start
=
self
.
current_tab
()
self
.
tabs
.
append
(
self
.
tabs
.
pop
(
0
))
while
self
.
current_tab
().
nb
!=
nb
:
self
.
tabs
.
append
(
self
.
tabs
.
pop
(
0
))
if
self
.
current_tab
()
==
start
:
self
.
current_tab
().
set_color_state
(
theme
.
COLOR_TAB_CURRENT
)
self
.
refresh_window
()
return
if
isinstance
(
nb
,
int
):
while
self
.
current_tab
().
nb
!=
nb
:
self
.
tabs
.
append
(
self
.
tabs
.
pop
(
0
))
if
self
.
current_tab
()
==
start
:
break
else
:
while
nb
not
in
JID
(
self
.
current_tab
().
get_name
()).
user
:
self
.
tabs
.
append
(
self
.
tabs
.
pop
(
0
))
if
self
.
current_tab
()
is
start
:
break
self
.
current_tab
().
on_gain_focus
()
self
.
refresh_window
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment