Skip to content

Commit

Permalink
editor - do not replace empty with empty
Browse files Browse the repository at this point in the history
  • Loading branch information
SilenZcience committed Dec 11, 2024
1 parent dd65221 commit 84d2feb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cat_win/src/service/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,8 @@ def _replace_search(self, r_this, r_with: str, search_: _SearchIterBase) -> None
if not isinstance(r_this, str):
r_this = self.window_content[self.cpos.row][self.cpos.col:self.cpos.col+search_.s_len]
r_with = search_.replace
if not r_this and not r_with:
return
self._key_replace_search(r_this, r_with)
self.history.add(b'_key_replace_search', False,
pre_cpos, self.cpos.get_pos(),
Expand Down

0 comments on commit 84d2feb

Please sign in to comment.