home · contact · privacy
Fix visibility tests on annotation, volume algorithm.
[plomrogue2] / rogue_chat_curses.py
index defc2724840ae41127b20748669288e8c5bbf73c..e037e7d5943f3762ffc72f08952a4d0f20fcec67 100755 (executable)
@@ -627,7 +627,7 @@ class TUI:
                 self.input_ = ""
                 self.switch_mode('play')
             elif self.mode == self.mode_chat and key == '\n':
-                if self.input_[0] == '/':
+                if self.input_[0] == '/':  # FIXME fails on empty input
                     if self.input_ in {'/' + self.keys['switch_to_play'], '/play'}:
                         self.switch_mode('play')
                     elif self.input_ in {'/' + self.keys['switch_to_study'], '/study'}: