aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2009-02-21 20:52:43 -0500
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2009-02-21 20:52:43 -0500
commit41de704f3aefa118cbfc18eeb56629019f166478 (patch)
tree4d855af8cf533d7ac05ac1a5d14cf0b1b1f42880
parentbf1111fc2c782ac257d47d834046f3a7316d3165 (diff)
Do not add browsers to the combo entry again on textadept.reset().
-rw-r--r--core/ext/pm/buffer_browser.lua2
-rw-r--r--core/ext/pm/ctags_browser.lua2
-rw-r--r--core/ext/pm/file_browser.lua2
-rw-r--r--core/ext/pm/macro_browser.lua2
-rw-r--r--core/ext/pm/modules_browser.lua2
-rw-r--r--core/ext/pm/project_browser.lua2
6 files changed, 6 insertions, 6 deletions
diff --git a/core/ext/pm/buffer_browser.lua b/core/ext/pm/buffer_browser.lua
index e33c15aa..61f8b26e 100644
--- a/core/ext/pm/buffer_browser.lua
+++ b/core/ext/pm/buffer_browser.lua
@@ -8,7 +8,7 @@ local locale = _G.locale
-- It is enabled with the prefix 'buffers' in the project manager entry field.
module('textadept.pm.browsers.buffer', package.seeall)
-textadept.pm.add_browser('buffers')
+if not RESETTING then textadept.pm.add_browser('buffers') end
function matches(entry_text)
return entry_text:sub(1, 7) == 'buffers'
diff --git a/core/ext/pm/ctags_browser.lua b/core/ext/pm/ctags_browser.lua
index 01f8cc12..503804c2 100644
--- a/core/ext/pm/ctags_browser.lua
+++ b/core/ext/pm/ctags_browser.lua
@@ -10,7 +10,7 @@ local locale = _G.locale
-- is specified, the current file is parsed via ctags and its structure shown.
module('textadept.pm.browsers.ctags', package.seeall)
-textadept.pm.add_browser('ctags')
+if not RESETTING then textadept.pm.add_browser('ctags') end
local FILE_OUT = '/tmp/textadept_output'
diff --git a/core/ext/pm/file_browser.lua b/core/ext/pm/file_browser.lua
index 40f14f8b..5568a061 100644
--- a/core/ext/pm/file_browser.lua
+++ b/core/ext/pm/file_browser.lua
@@ -9,7 +9,7 @@ local locale = _G.locale
-- manager entry field.
module('textadept.pm.browsers.file', package.seeall)
-textadept.pm.add_browser(not WIN32 and '/' or 'C:\\')
+if not RESETTING then textadept.pm.add_browser(not WIN32 and '/' or 'C:\\') end
local lfs = require 'lfs'
local os = require 'os'
diff --git a/core/ext/pm/macro_browser.lua b/core/ext/pm/macro_browser.lua
index 32bd86ff..d7cde6bd 100644
--- a/core/ext/pm/macro_browser.lua
+++ b/core/ext/pm/macro_browser.lua
@@ -8,7 +8,7 @@ local locale = _G.locale
-- It is enabled with the prefix 'macros' in the project manager entry field.
module('textadept.pm.browsers.macro', package.seeall)
-textadept.pm.add_browser('macros')
+if not RESETTING then textadept.pm.add_browser('macros') end
function matches(entry_text)
return entry_text:sub(1, 7) == 'macros'
diff --git a/core/ext/pm/modules_browser.lua b/core/ext/pm/modules_browser.lua
index fada137b..37e83592 100644
--- a/core/ext/pm/modules_browser.lua
+++ b/core/ext/pm/modules_browser.lua
@@ -8,7 +8,7 @@ local locale = _G.locale
-- It is enabled with the prefix 'modules' in the project manager entry field.
module('textadept.pm.browsers.modules', package.seeall)
-textadept.pm.add_browser('modules')
+if not RESETTING then textadept.pm.add_browser('modules') end
local lfs = require 'lfs'
local os = require 'os'
diff --git a/core/ext/pm/project_browser.lua b/core/ext/pm/project_browser.lua
index f034e41c..d2719625 100644
--- a/core/ext/pm/project_browser.lua
+++ b/core/ext/pm/project_browser.lua
@@ -8,7 +8,7 @@ local locale = _G.locale
-- It is enabled with the prefix 'project' in the project manager entry field.
module('textadept.pm.browsers.project', package.seeall)
-textadept.pm.add_browser('project')
+if not RESETTING then textadept.pm.add_browser('project') end
local lfs = require 'lfs'
local os = require 'os'