@@ -5037,6 +5037,11 @@ def _goto_history_back_handler(self):
50375037
50385038 def _handle_cursor_move_up (self ):
50395039 # logger.error('DE selection = {}, start pos = {}, current selection = {}, b_start = {}, b_end = {}, maxY = {}, maxX = {}'.format(self.selection, self.startPos, self._current_selection, self.bodyWinStartY, self.bodyWinEndY, self.bodyMaxY, self.maxX))
5040+ if self ._limited_height_mode or self ._limited_width_mode :
5041+ if logger .isEnabledFor (logging .DEBUG ):
5042+ logger .debug ('_handle_cursor_move_up(): Not touching window, it\' s small' )
5043+ self ._force_print_all_lines = False
5044+ return
50405045 if self ._force_print_all_lines :
50415046 self ._force_print_all_lines = False
50425047 else :
@@ -5051,6 +5056,11 @@ def _handle_cursor_move_up(self):
50515056
50525057 def _handle_cursor_move_down (self ):
50535058 # logger.error('DE selection = {}, start pos = {}, current selection = {}, b_start = {}, b_end = {}, maxY = {}, maxX = {}'.format(self.selection, self.startPos, self._current_selection, self.bodyWinStartY, self.bodyWinEndY, self.bodyMaxY, self.maxX))
5059+ if self ._limited_height_mode or self ._limited_width_mode :
5060+ if logger .isEnabledFor (logging .DEBUG ):
5061+ logger .debug ('_handle_cursor_move_down(): Not touching window, it\' s small' )
5062+ self ._force_print_all_lines = False
5063+ return
50545064 if self ._force_print_all_lines :
50555065 self ._force_print_all_lines = False
50565066 else :
@@ -5119,12 +5129,13 @@ def _play_next_station(self):
51195129 self ._reset_status_bar_right ()
51205130 if self .ws .window_mode == self .ws .PLAYLIST_MODE :
51215131 self ._show_stations_history_notification (2 )
5122- elif not self .player .isPlaying ():
5123- self ._show_stations_history_notification (3 )
5132+ # elif not self.player.isPlaying():
5133+ # self._show_stations_history_notification(3)
51245134 elif self .player .connecting :
51255135 self ._show_stations_history_notification (1 )
51265136 else :
5127- self .selection = self .playing
5137+ # if self.playing > -1:
5138+ # self.selection = self.playing
51285139 self ._move_cursor_one_down ()
51295140 self .playSelection ()
51305141 self .refreshBody ()
@@ -5133,12 +5144,13 @@ def _play_previous_station(self):
51335144 self ._reset_status_bar_right ()
51345145 if self .ws .window_mode == self .ws .PLAYLIST_MODE :
51355146 self ._show_stations_history_notification (2 )
5136- elif not self .player .isPlaying ():
5137- self ._show_stations_history_notification (3 )
5147+ # elif not self.player.isPlaying():
5148+ # self._show_stations_history_notification(3)
51385149 elif self .player .connecting :
51395150 self ._show_stations_history_notification (1 )
51405151 else :
5141- self .selection = self .playing
5152+ # if self.playing > -1:
5153+ # self.selection = self.playing
51425154 self ._move_cursor_one_up ()
51435155 self .playSelection ()
51445156 self .refreshBody ()
@@ -5245,14 +5257,15 @@ def _show_stations_history_notification(self, msg_id):
52455257 msg = (
52465258 'Operation not supported' ,
52475259 'Please wait for the player to settle...' ,
5248- 'Operation supported in stations mode only...'
5260+ 'Operation supported in stations mode only...' ,
52495261 'Player not playing...'
52505262 )
52515263 if self .player .isPlaying ():
52525264 self .log .write (msg = msg [msg_id ])
52535265 self .player .threadUpdateTitle ()
52545266 else :
52555267 self .log .write (msg = msg [msg_id ], help_msg = True , suffix = self ._status_suffix )
5268+ self .player .threadUpdateTitle ()
52565269 else :
52575270 msg = (
52585271 '___Operation not suported!!!___\n ____Connection timeout is 0 ' ,
0 commit comments