arcadia 0.11.1.2 → 0.11.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README +4 -4
  2. data/ext/ae-editor/ae-editor.rb +27 -15
  3. data/lib/a-core.rb +1 -1
  4. metadata +3 -3
data/README CHANGED
@@ -1,8 +1,8 @@
1
1
  = Arcadia Ide
2
- version 0.11.1.2
2
+ version 0.11.1.4
3
3
 
4
4
  by Antonio Galeone
5
- on Jun 29, 2012
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.2
20
- - A Bug fixed : error in string encoding on file loading
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
@@ -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
- _txt = @text.get((_row.to_i-1).to_s+'.0',_index)
1771
- if _txt.length > 0
1772
- m = /\s*/.match(_txt)
1773
- if m
1774
- if (m[0] != "\n")
1775
- _sm = m[0]
1776
- _sm = _sm.sub(/\n/,"")
1777
- @text.insert('insert',_sm)
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
- end
1781
- if _row.to_i + 1 == @text.index('end').split('.')[0].to_i
1782
- do_line_update
1783
- end
1784
- if @highlighting
1785
- rehighlightlines(_row.to_i, _row.to_i)
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
@@ -23,7 +23,7 @@ class Arcadia < TkApplication
23
23
  super(
24
24
  ApplicationParams.new(
25
25
  'arcadia',
26
- '0.11.1.2',
26
+ '0.11.1.4',
27
27
  'conf/arcadia.conf',
28
28
  'conf/arcadia.pers'
29
29
  )
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 0
7
7
  - 11
8
8
  - 1
9
- - 2
10
- version: 0.11.1.2
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-06-29 00:00:00 +02:00
18
+ date: 2012-07-11 00:00:00 +02:00
19
19
  default_executable: arcadia
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency