diff --git a/pwndbg/commands/context.py b/pwndbg/commands/context.py index caa2b9802..64a8f932a 100644 --- a/pwndbg/commands/context.py +++ b/pwndbg/commands/context.py @@ -457,7 +457,7 @@ def get_highlight_source(filename): if pwndbg.config.syntax_highlight: source = H.syntax_highlight(source, filename) - source_lines = source.splitlines() + source_lines = source.split('\n') source_lines = tuple(line.rstrip() for line in source_lines) return source_lines