summaryrefslogtreecommitdiff
path: root/lua/warp/strategy/grid.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/warp/strategy/grid.lua')
-rw-r--r--lua/warp/strategy/grid.lua11
1 files changed, 5 insertions, 6 deletions
diff --git a/lua/warp/strategy/grid.lua b/lua/warp/strategy/grid.lua
index 2e8a871..e68e010 100644
--- a/lua/warp/strategy/grid.lua
+++ b/lua/warp/strategy/grid.lua
@@ -2,8 +2,8 @@ local vim = assert(vim)
local M = {}
-local hsel1 = "tnshrdlcumwfgypkbvjxqz" -- 21
-local hsel2 = "aeiou" -- 5
+local hsel1 = "tnshrdlcmwfpgkbvjxy" -- 19
+local hsel2 = "aeiouzq" -- 7
local function char_at(s, i)
local m = (i % #s) + 1
@@ -21,15 +21,14 @@ local function make_big_line()
while true do
v = char_at(hsel1, i)
if c then
- if col_map[v .. c] then break end
+ if col_map[c .. v] then break end
col_map[c .. v] = col
end
c = char_at(hsel2, i)
- if col_map[c .. v] then break end
- line = line .. v
col = col + 1
- line = line .. c
+ if col_map[v .. c] then break end
col_map[v .. c] = col
+ line = line .. v .. c
col = col + 1
i = i + 1
end