Ver código fonte

HexEditor: Fill selection sets only bytes inside selection

Before this patch the fill selection command would set the selection
and one byte after it
Samu698 3 anos atrás
pai
commit
a562518ad7
1 arquivos alterados com 1 adições e 2 exclusões
  1. 1 2
      Userland/Applications/HexEditor/HexEditor.cpp

+ 1 - 2
Userland/Applications/HexEditor/HexEditor.cpp

@@ -93,9 +93,8 @@ void HexEditor::fill_selection(u8 fill_byte)
     if (!has_selection())
         return;
 
-    for (size_t i = m_selection_start; i <= m_selection_end; i++) {
+    for (size_t i = m_selection_start; i < m_selection_end; i++)
         m_document->set(i, fill_byte);
-    }
 
     update();
     did_change();