diff options
author | 2016-10-19 17:01:10 -0400 | |
---|---|---|
committer | 2016-10-19 17:01:10 -0400 | |
commit | a61c388d38cf507fd0e5e8de5baae97ed45f4d59 (patch) | |
tree | 17b19a7b9e04f9aa17023479a9067a643ce499ab /core/ui.lua | |
parent | ffa6e98d0f1e4bc5d44ad57ac375cd85fc0c9fdc (diff) |
Updated to Scintilla 3.7.0.
Diffstat (limited to 'core/ui.lua')
-rw-r--r-- | core/ui.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/ui.lua b/core/ui.lua index 85ffcba1..1b35221b 100644 --- a/core/ui.lua +++ b/core/ui.lua @@ -401,7 +401,7 @@ local function save_view_state() buffer._view_eol, buffer._view_ws = buffer.view_eol, buffer.view_ws buffer._wrap_mode = buffer.wrap_mode buffer._margin_type_n, buffer._margin_width_n = {}, {} - for i = 0, 4 do + for i = 0, buffer.margins - 1 do buffer._margin_type_n[i] = buffer.margin_type_n[i] buffer._margin_width_n[i] = buffer.margin_width_n[i] end @@ -415,7 +415,7 @@ local function restore_view_state() if not buffer._margin_type_n then return end buffer.view_eol, buffer.view_ws = buffer._view_eol, buffer._view_ws buffer.wrap_mode = buffer._wrap_mode - for i = 0, 4 do + for i = 0, buffer.margins - 1 do buffer.margin_type_n[i] = buffer._margin_type_n[i] buffer.margin_width_n[i] = buffer._margin_width_n[i] end |