Skip to content

Commit

Permalink
Fix crash in editview (Ticket: #325)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Pfenniger authored and timfel committed Oct 12, 2010
1 parent d456729 commit 36f7311
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/edit_view_swt/lib/edit_view_swt.rb
Expand Up @@ -147,7 +147,7 @@ def record_action(event)
action = st.getKeyBinding(event.character | event.stateMask)
if (action == Swt::SWT::NULL)
# see if we have a control character
if ((event.stateMask & SWT.CTRL) != 0 && event.character <= 31)
if ((event.stateMask & Swt::SWT::CTRL) != 0 && event.character <= 31)
# get the character from the CTRL+char sequence, the control
# key subtracts 64 from the value of the key that it modifies
c = event.character + 64
Expand Down

0 comments on commit 36f7311

Please sign in to comment.