aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/editing.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2020-02-07 15:08:00 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2020-02-07 15:08:00 -0500
commitb2f7d9b036b54bff893d0dbe916c326d0be8246b (patch)
treeee7845731f66848d8f80a045ba70ca9540eed5b5 /modules/textadept/editing.lua
parenta48f7b740c6ede6395056df321c1f9b8990fee19 (diff)
downloadtextadept-b2f7d9b036b54bff893d0dbe916c326d0be8246b.tar.gz
textadept-b2f7d9b036b54bff893d0dbe916c326d0be8246b.zip
Prevent hangs on WIN32 curses with `textadept.editing.filter_through()`.
There is no ability to read and write to processes on Win32 curses, so disable the feature.
Diffstat (limited to 'modules/textadept/editing.lua')
-rw-r--r--modules/textadept/editing.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/textadept/editing.lua b/modules/textadept/editing.lua
index 4ea30f96..b0e8bf62 100644
--- a/modules/textadept/editing.lua
+++ b/modules/textadept/editing.lua
@@ -578,6 +578,7 @@ end
-- text through. May contain pipes.
-- @name filter_through
function M.filter_through(command)
+ assert(not (WIN32 and CURSES), 'not implemented in this environment')
local s, e = buffer.selection_start, buffer.selection_end
if s ~= e then
-- Use the selected lines as input.