summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-03-15 00:36:30 +0100
committerhut <hut@lavabit.com>2013-03-15 00:36:30 +0100
commit948bb0360cf9b4190e742a9f56cff75be1d7742d (patch)
tree2b59c55e0a5d3a4d39c769bec3500d734a35583e
parentc3c895fe74966cf8e871bdafea73c59ef9c4559b (diff)
downloadranger-948bb0360cf9b4190e742a9f56cff75be1d7742d.tar.gz
ext.img_display.clear: adjust width
-rw-r--r--ranger/ext/img_display.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/ext/img_display.py b/ranger/ext/img_display.py
index 75501f48..9f2fd316 100644
--- a/ranger/ext/img_display.py
+++ b/ranger/ext/img_display.py
@@ -93,7 +93,7 @@ def clear(start_x, start_y, width, height):
     cmd = "6;{x};{y};{w};{h}\n4;\n3;".format(
             x = start_x * fontw,
             y = start_y * fonth,
-            w = width * fontw,
+            w = (width + 1) * fontw,
             h = height * fonth)
 
     _w3mimgdisplay(cmd)
-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#!/bin/bash
# Regenerate html files.

for f in *.cc *.mu
do
  vim -c "TOhtml | w | qa" $f
  mv $f.html html
done
sed -i 's,<title>\~/mu/,<title>Mu - ,' html/*
sed -i 's,\.html</title>,</title>,' html/*
sed -i 's/^\*.*/* { font-size: 1.05em; }/g' html/*
# tweak contrast
sed -i 's/^\.Constant .*/.Constant { color: #00a0a0; }/' html/*
sed -i 's/^\.muControl .*/.muControl { color: #c0a020; }/' html/*
sed -i 's/^\.Comment .*/.Comment { color: #9090ff; }/' html/*
sed -i 's/^\.Delimiter .*/.Delimiter { color: #a04060; }/' html/*  # not meant to be read/ can be lower-contrast