diff options
author | Daniel Hahler <git@thequod.de> | 2019-07-30 07:32:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-30 07:32:47 +0200 |
commit | 35ec60f73a5d9f1ad9393bb1f645c624e67fdb26 (patch) | |
tree | cdab39bdae9398dab95927303b179250d644dd03 /contrib/gdb/nvim-gdb-pretty-printers.py | |
parent | bae02eb3968be1c9677283d030fbbe6dd02cb180 (diff) | |
parent | d651710de1e5627d602d9ca05a902e198d031571 (diff) | |
download | rneovim-35ec60f73a5d9f1ad9393bb1f645c624e67fdb26.tar.gz rneovim-35ec60f73a5d9f1ad9393bb1f645c624e67fdb26.tar.bz2 rneovim-35ec60f73a5d9f1ad9393bb1f645c624e67fdb26.zip |
Merge pull request #10648 from blueyed/autopep8
ci: py: flake8 fixes
Diffstat (limited to 'contrib/gdb/nvim-gdb-pretty-printers.py')
-rw-r--r-- | contrib/gdb/nvim-gdb-pretty-printers.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/gdb/nvim-gdb-pretty-printers.py b/contrib/gdb/nvim-gdb-pretty-printers.py index 609ceeb7ab..a6a3d90ce4 100644 --- a/contrib/gdb/nvim-gdb-pretty-printers.py +++ b/contrib/gdb/nvim-gdb-pretty-printers.py @@ -26,13 +26,13 @@ def get_color_code(bg, color_num): prefix += 1 color_num %= 8 else: - prefix = '48;5;' if bg else '38;5;' + prefix = '48;5;' if bg else '38;5;' return '\x1b[{0}{1}m'.format(prefix, color_num) def highlight(attrs): fg, bg = [int(attrs['foreground']), int(attrs['background'])] - rv = [SGR0] # start with sgr0 + rv = [SGR0] # start with sgr0 if fg != -1: rv.append(get_color_code(False, fg)) if bg != -1: |