arcadia 0.11.1.2 → 0.11.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +4 -4
- data/ext/ae-editor/ae-editor.rb +27 -15
- data/lib/a-core.rb +1 -1
- metadata +3 -3
data/README
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
= Arcadia Ide
|
2
|
-
version 0.11.1.
|
2
|
+
version 0.11.1.4
|
3
3
|
|
4
4
|
by Antonio Galeone
|
5
|
-
on
|
5
|
+
on Jul 11, 2012
|
6
6
|
|
7
7
|
|
8
8
|
== About
|
@@ -16,8 +16,8 @@ Some of Arcadia ide project features include:
|
|
16
16
|
* Debugging support
|
17
17
|
* Highly extensibility architecture.
|
18
18
|
|
19
|
-
== In this release 0.11.1.
|
20
|
-
- A Bug fixed :
|
19
|
+
== In this release 0.11.1.4
|
20
|
+
- A Bug fixed : problem after typing "Enter" in confirmation of a selected chinese symbol
|
21
21
|
|
22
22
|
== Dependencies
|
23
23
|
- rubygems
|
data/ext/ae-editor/ae-editor.rb
CHANGED
@@ -1766,23 +1766,35 @@ class AgEditor
|
|
1766
1766
|
end
|
1767
1767
|
when 'Return' #,'Control_L', 'Control_V', 'BackSpace', 'Delete'
|
1768
1768
|
_index = @text.index('insert')
|
1769
|
+
_previous_index = @text.index('insert -2 chars')
|
1769
1770
|
_row, _col = _index.split('.')
|
1770
|
-
|
1771
|
-
if
|
1772
|
-
|
1773
|
-
if
|
1774
|
-
|
1775
|
-
|
1776
|
-
|
1777
|
-
|
1771
|
+
_previous_row, _previous_col = _previous_index.split('.')
|
1772
|
+
if _previous_row != _row
|
1773
|
+
_txt = @text.get((_row.to_i-1).to_s+'.0',_index)
|
1774
|
+
if _txt.length > 0
|
1775
|
+
m = /\s*/.match(_txt)
|
1776
|
+
if m
|
1777
|
+
if (m[0] != "\n")
|
1778
|
+
_sm = m[0]
|
1779
|
+
_sm = _sm.sub(/\n/,"")
|
1780
|
+
if _col.strip != '0'
|
1781
|
+
i0 = "#{_row.strip}.0"
|
1782
|
+
i1 = "#{_index} lineend"
|
1783
|
+
dirty = @text.get(i0,i1)
|
1784
|
+
if dirty && dirty.strip.length == 0
|
1785
|
+
@text.delete(i0,i1)
|
1786
|
+
end
|
1787
|
+
end
|
1788
|
+
@text.insert('insert',_sm)
|
1789
|
+
end
|
1778
1790
|
end
|
1779
1791
|
end
|
1780
|
-
|
1781
|
-
|
1782
|
-
|
1783
|
-
|
1784
|
-
|
1785
|
-
|
1792
|
+
if _row.to_i + 1 == @text.index('end').split('.')[0].to_i
|
1793
|
+
do_line_update
|
1794
|
+
end
|
1795
|
+
if @highlighting
|
1796
|
+
rehighlightlines(_row.to_i, _row.to_i)
|
1797
|
+
end
|
1786
1798
|
end
|
1787
1799
|
when 'Shift_L','Shift_R','Control_L','Control_R' ,'Prior', 'Next', 'Up','Down'
|
1788
1800
|
# do nothing because od do_line_update
|
@@ -5087,7 +5099,7 @@ class AgMultiEditor < ArcadiaExtPlus
|
|
5087
5099
|
editor.text_see(_text_index)
|
5088
5100
|
editor.mark_selected(_text_index) if _mark_selected
|
5089
5101
|
end
|
5090
|
-
editor.do_line_update if !editor.highlighted?
|
5102
|
+
editor.do_line_update if editor && !editor.highlighted?
|
5091
5103
|
return editor
|
5092
5104
|
end
|
5093
5105
|
|
data/lib/a-core.rb
CHANGED
metadata
CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
|
|
6
6
|
- 0
|
7
7
|
- 11
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.11.1.
|
9
|
+
- 4
|
10
|
+
version: 0.11.1.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Antonio Galeone
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
18
|
+
date: 2012-07-11 00:00:00 +02:00
|
19
19
|
default_executable: arcadia
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|