aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept
diff options
context:
space:
mode:
Diffstat (limited to 'modules/textadept')
-rw-r--r--modules/textadept/find.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/textadept/find.lua b/modules/textadept/find.lua
index b388161c..85903bc5 100644
--- a/modules/textadept/find.lua
+++ b/modules/textadept/find.lua
@@ -250,7 +250,8 @@ end
function M.find_in_files(dir)
dir = dir or ui.dialogs.fileselect{
title = _L['Find in Files'], select_only_directories = true,
- with_directory = (buffer.filename or ''):match('^.+[/\\]') or
+ with_directory = io.get_project_root() or
+ (buffer.filename or ''):match('^.+[/\\]') or
lfs.currentdir()
}
if not dir then return end