Browse Source

Show which one is hitting the empty history.

root 4 years ago
parent
commit
d623dd872e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      terminal.cpp

+ 2 - 2
terminal.cpp

@@ -308,7 +308,7 @@ Terminal::ANSI_TYPE Terminal::ansi_code(std::string ansi) {
       case 'u':
         // restore position
         if (saved_cursor_position.empty()) {
-          ZF_LOGE("Restore cursor position from empty history.");
+          ZF_LOGE("Restore from saved_cursor_position (empty).");
         } else {
           std::pair<int, int> pos = saved_cursor_position.back();
           this->posx = pos.first;
@@ -693,7 +693,7 @@ ANSI_TYPE console_ansi(struct console_details *cdp, const char *ansi) {
       case 'u':
         // restore position
         if (cursor_position_history.empty()) {
-          ZF_LOGE("Restore cursor position from empty history.");
+          ZF_LOGE("Restore from cursor_position_history (empty).");
         } else {
           std::pair<int, int> pos = cursor_position_history.back();
           cdp->posx = pos.first;