1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 23:22:26 +01:00

fix :marks position columns output

This commit is contained in:
Doug Kearns
2008-10-01 07:17:46 +00:00
parent cc27911a60
commit 5b17f32ac5
2 changed files with 9 additions and 3 deletions

View File

@@ -1379,8 +1379,8 @@ liberator.Buffer = function () //{{{
{[ {[
<tr> <tr>
<td>{mark[0]}</td> <td>{mark[0]}</td>
<td align="right">{Math.round(mark[1].position.y & 100)}%</td> <td align="right">{Math.round(mark[1].position.y * 100)}%</td>
<td align="right">{Math.round(mark[1].position.x & 100)}%</td> <td align="right">{Math.round(mark[1].position.x * 100)}%</td>
<td style="color: green;">{mark[1].location}</td> <td style="color: green;">{mark[1].location}</td>
</tr> </tr>
for each (mark in marks)].reduce(this.add, <></>) for each (mark in marks)].reduce(this.add, <></>)

View File

@@ -789,7 +789,13 @@ const liberator = (function () //{{{
} }
}, },
echo: function (str, flags) { liberator.commandline.echo(str, liberator.commandline.HL_NORMAL, flags); }, echo: function (str, flags) {
var commandlineHandler = Components.classes["@mozilla.org/commandlinehandler/general-startup;1?type=vimperator"]
.createInstance(Components.interfaces.nsICommandlineHandler);
alert(commandlineHandler.handle)
liberator.commandline.echo(str, liberator.commandline.HL_NORMAL, flags);
},
// TODO: Vim replaces unprintable characters in echoerr/echomsg // TODO: Vim replaces unprintable characters in echoerr/echomsg
echoerr: function (str, flags) echoerr: function (str, flags)