aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2015-02-18 13:58:19 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2015-02-18 13:58:19 -0500
commite269446baaaa881d4d280ebf8c782a29950a5e35 (patch)
tree3a47edce3660f3d37047084dcf7b0b0d178def91 /modules
parent8ccbe89fb35a9e61a6ef48bb53e52dbbe8297f1b (diff)
downloadtextadept-e269446baaaa881d4d280ebf8c782a29950a5e35.tar.gz
textadept-e269446baaaa881d4d280ebf8c782a29950a5e35.zip
Consider some view-specific properties as buffer-specific ones.
These include "view_eol", "wrap_mode", "view_ws", "margin_type_n", and "margin_width_n". The latter two are for preventing clashes between modules that modify margins on a per-buffer basis.
Diffstat (limited to 'modules')
-rw-r--r--modules/textadept/menu.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua
index cb27174f..19d0687d 100644
--- a/modules/textadept/menu.lua
+++ b/modules/textadept/menu.lua
@@ -165,6 +165,10 @@ local menubar = {
{_L['UTF-1_6 Encoding'], {utils.set_encoding, 'UTF-16LE'}},
},
SEPARATOR,
+ {_L['Toggle View _EOL'], {utils.toggle_property, 'view_eol'}},
+ {_L['Toggle _Wrap Mode'], {utils.toggle_property, 'wrap_mode'}},
+ {_L['Toggle View White_space'], {utils.toggle_property, 'view_ws'}},
+ SEPARATOR,
{_L['Select _Lexer...'], textadept.file_types.select_lexer},
{_L['_Refresh Syntax Highlighting'], {buffer.colourise, buffer, 0, -1}},
},
@@ -181,11 +185,8 @@ local menubar = {
SEPARATOR,
{_L['Toggle Current _Fold'], utils.toggle_current_fold},
SEPARATOR,
- {_L['Toggle View _EOL'], {utils.toggle_property, 'view_eol'}},
- {_L['Toggle _Wrap Mode'], {utils.toggle_property, 'wrap_mode'}},
{_L['Toggle Show In_dent Guides'],
{utils.toggle_property, 'indentation_guides'}},
- {_L['Toggle View White_space'], {utils.toggle_property, 'view_ws'}},
{_L['Toggle _Virtual Space'],
{utils.toggle_property, 'virtual_space_options',
buffer.VS_USERACCESSIBLE}},