Skip to content

Commit

Permalink
[Fix] #2363 シンボルエディタのシンボルが非表示になることがある不具合を修正した
Browse files Browse the repository at this point in the history
  • Loading branch information
Hourier authored and sikabane-works committed May 4, 2024
1 parent df48717 commit a24c00c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/io-dump/dump-util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ bool visual_mode_command(char ch, bool *visual_list_ptr,
}

*visual_list_ptr = true;
*attr_top_ptr = std::max<byte>(0, (*cur_attr_ptr & 0x7f) - 5);
*char_left_ptr = std::max<byte>(0, *cur_char_ptr - 10);
*attr_top_ptr = std::max<int8_t>(0, (*cur_attr_ptr & 0x7f) - 5);
*char_left_ptr = std::max<int8_t>(0, *cur_char_ptr - 10);
attr_old = *cur_attr_ptr;
char_old = *cur_char_ptr;
return true;
Expand All @@ -84,7 +84,7 @@ bool visual_mode_command(char ch, bool *visual_list_ptr,
case 'p': {
if (attr_idx || (!(char_idx & 0x80) && char_idx)) {
*cur_attr_ptr = attr_idx;
*attr_top_ptr = std::max<byte>(0, (*cur_attr_ptr & 0x7f) - 5);
*attr_top_ptr = std::max<int8_t>(0, (*cur_attr_ptr & 0x7f) - 5);
if (!*visual_list_ptr) {
*need_redraw = true;
}
Expand All @@ -93,7 +93,7 @@ bool visual_mode_command(char ch, bool *visual_list_ptr,
if (char_idx) {
/* Set the char */
*cur_char_ptr = char_idx;
*char_left_ptr = std::max<byte>(0, *cur_char_ptr - 10);
*char_left_ptr = std::max<int8_t>(0, *cur_char_ptr - 10);
if (!*visual_list_ptr) {
*need_redraw = true;
}
Expand Down

0 comments on commit a24c00c

Please sign in to comment.