porting-tip: Mitigate a bug in the discount MarkDown parser.

Some `+` and `-` were missing because it re-indented the content
based on the first code line. It then truncated whatever was
below.

Pushing this to master because Ubuntu/Z, Debian/Sid and Arch just
upgraded to 4.0 and angry reports are coming in *fast*.
This commit is contained in:
Emmanuel Lepage Vallee 2017-01-22 07:59:25 -05:00
parent bfb3534955
commit ff78f4a41d
1 changed files with 2 additions and 2 deletions

View File

@ -231,14 +231,14 @@ previously removed are replaced by custom screens attributes.
Another dynamic screen related changes. Another dynamic screen related changes.
-- Prompt -- Prompt
- awful.key({ modkey }, "r", function () mypromptbox[mouse.screen]:run() end), - awful.key({ modkey }, "r", function () mypromptbox[mouse.screen]:run() end),
+ awful.key({ modkey }, "r", function () `awful.screen.focused`().mypromptbox:run() end), + awful.key({ modkey }, "r", function () `awful.screen.focused`().mypromptbox:run() end),
`awful.prompt` now uses a more future proof arguments table instead of many `awful.prompt` now uses a more future proof arguments table instead of many
optional arguments. optional arguments.
awful.key({ modkey }, "x", awful.key({ modkey }, "x",
function () function ()
- `awful.prompt.run`({ prompt = "Run Lua code: " }, - `awful.prompt.run`({ prompt = "Run Lua code: " },
- mypromptbox[mouse.screen].widget, - mypromptbox[mouse.screen].widget,