Skip to content

Commit

Permalink
fix indentation when line numbers disabled and no markup on view sett…
Browse files Browse the repository at this point in the history
…ing toggles
  • Loading branch information
UserBlackBox committed Aug 16, 2021
1 parent c7d3cde commit a31fd0d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ def code_tree_cursor_changed(self, data):
codeBrowserBuffer.delete(start,end)
text = bytecode.get_bytecode(linenum=menu_linenum.get_active(),
jumps=menu_jumps.get_active())
text = text.strip()
codeBrowserBuffer.insert_markup(start, text, len(text))

global details_buffer
Expand Down Expand Up @@ -139,7 +138,12 @@ def menu_view_toggled(self, data):
bytecode = bytecodeFile
for i in path:
bytecode = bytecode.sub[i]
codeBrowserBuffer.set_text(bytecode.get_bytecode(linenum=menu_linenum.get_active(), jumps=menu_jumps.get_active()))
start = codeBrowserBuffer.get_start_iter()
end = codeBrowserBuffer.get_end_iter()
codeBrowserBuffer.delete(start,end)
text = bytecode.get_bytecode(linenum=menu_linenum.get_active(),
jumps=menu_jumps.get_active())
codeBrowserBuffer.insert_markup(start, text, len(text))


builder.connect_signals(Handler())
Expand Down

0 comments on commit a31fd0d

Please sign in to comment.