mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 17:22:26 +01:00
fix :marks position columns output
This commit is contained in:
@@ -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, <></>)
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user