From 2835799ac0581f667c9ef9b66fe2b155a5348ae5 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 22 Aug 2020 16:34:47 -0400 Subject: Added `ui.command_entry.active` and fixed bugs in `events.KEYPRESS` handlers. --- modules/textadept/run.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/textadept/run.lua') diff --git a/modules/textadept/run.lua b/modules/textadept/run.lua index d76ae030..ffccc7e7 100644 --- a/modules/textadept/run.lua +++ b/modules/textadept/run.lua @@ -90,11 +90,11 @@ local function scan_for_error(message, ext_or_lexer) end detail.warning = message:lower():find('warning') and not message:lower():find('error') - -- Compile and run commands specify the file extension or lexer name used - -- to determine the command, so the error patterns used are guaranteed to + -- Compile and run commands specify the file extension or lexer name used + -- to determine the command, so the error patterns used are guaranteed to -- be correct. Build commands have no such context and instead iterate -- through all possible error patterns. Only consider the error/warning - -- valid if the extracted filename's extension or lexer name matches the + -- valid if the extracted filename's extension or lexer name matches the -- error pattern's extension or lexer name. if ext_or_lexer then return detail end local ext = detail.filename:match('[^/\\.]+$') -- cgit v1.2.3