1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 09:17:58 +01:00

Update buffer.viewSource and buffer.viewSourceExternally prototypes. Update default 'editor' value to support columns in Vim.

This commit is contained in:
Kris Maglione
2011-06-27 18:52:41 -04:00
parent fb19a86c4b
commit d2c479f8a1
2 changed files with 30 additions and 12 deletions

View File

@@ -858,7 +858,7 @@ var Editor = Module("editor", {
options: function () {
options.add(["editor"],
"The external text editor",
"string", "gvim -f +<line> <file>", {
"string", "gvim -f '+<line><{|sil! call cursor(0, <column>)}>' <file>", {
format: function (obj, value) {
let args = commands.parseArgs(value || this.value, { argCount: "*", allowUnknownOptions: true })
.map(util.compileMacro).filter(function (fmt) fmt.valid(obj))