From df8842cab01b42d8199b96bdad49266c5275da0e Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Thu, 6 Nov 2014 10:07:56 -0500 Subject: Use the current working directory in fileselect dialogs. This should have been committed long ago. --- modules/textadept/find.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/textadept/find.lua b/modules/textadept/find.lua index bde8dfa5..8aacfcb3 100644 --- a/modules/textadept/find.lua +++ b/modules/textadept/find.lua @@ -225,7 +225,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('^.+[/\\]'), + with_directory = (buffer.filename or ''):match('^.+[/\\]') or + lfs.currentdir()..'/' } if not dir then return end -- cgit v1.2.3