Skip to content

Commit b019d80

Browse files
committed
Small documentation and code cleanup.
1 parent 6c36241 commit b019d80

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ local M = {}
160160
-- Arguments:
161161
--
162162
-- * _`lang`_: The lexer name of the language being debugged.
163-
-- * _`position`_: The buffer position of the symbol to inspect. The debugger responsible
163+
-- * _`position`_: The buffer position of the symbol to inspect. The debugger is responsible
164164
-- for identifying the symbol's name, as symbol characters vary from language to language.
165165
-- @field _G.events.DEBUGGER_COMMAND (string)
166166
-- Emitted when a debugger command should be run.

lua/init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ local function handle(action, callback)
5858
-- MobDebug stdout handler.
5959
handler = function(output)
6060
local orig_view = view
61-
ui.print(output:find('\r?\n$') and output:match('^(.+)\r?\n') or output)
61+
ui.print((output:gsub('\r?\n', '')))
6262
if view ~= orig_view then ui.goto_view(orig_view) end
6363
end
6464
}
@@ -140,7 +140,7 @@ local function update_state(level)
140140
if state then debugger.update_state(state) end
141141
end
142142

143-
-- Handles continue, stop over, step into, and step out of events, and updates the debugger state.
143+
-- Handles continue, step over, step into, and step out of events, and updates the debugger state.
144144
-- @param action MobDebug action to run. One of 'run', 'step', 'over', or 'out'.
145145
local function handle_continuation(action)
146146
handle(action, function(file, line)

0 commit comments

Comments
 (0)