File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change 12
12
13
13
from . import exc , formats
14
14
from ._compat import text_type
15
- from .common import EnvironmentMixin , TmuxMappingObject , \
15
+ from .common import EnvironmentMixin , has_version , TmuxMappingObject , \
16
16
TmuxRelationalObject , session_check_name , handle_option_error
17
17
from .window import Window
18
18
@@ -152,14 +152,20 @@ def rename_session(self, new_name):
152
152
"""
153
153
session_check_name (new_name )
154
154
155
- proc = self .cmd (
156
- 'rename-session' ,
157
- '-t%s' % self .id ,
158
- new_name
159
- )
155
+ proc = self .cmd ('rename-session' , new_name )
160
156
161
157
if proc .stderr :
162
- raise exc .LibTmuxException (proc .stderr )
158
+ if has_version ('2.7' ) and 'no current client' in proc .stderr :
159
+ """tmux 2.7 raises "no current client" warning on BSD systems.
160
+
161
+ Should be fixed next release:
162
+
163
+ - https://www.mail-archive.com/tech@openbsd.org/msg45186.html
164
+ - https://marc.info/?l=openbsd-cvs&m=152183263526828&w=2
165
+ """
166
+ pass
167
+ else :
168
+ raise exc .LibTmuxException (proc .stderr )
163
169
164
170
return self
165
171
You can’t perform that action at this time.
0 commit comments