lib/rbcurse/rmultitextview.rb in rbcurse-1.3.0 vs lib/rbcurse/rmultitextview.rb in rbcurse-1.4.0

- old
+ new

@@ -173,13 +173,11 @@ begin @current_buffer = @bmanager.add file, title $log.debug " file edit got cb : #{@current_buffer} " set_current_buffer rescue => err -# $error_message = "Error: #{err} " # changed 2010 dts - $error_message.value = "Error: #{err} " - #@form.window.print_error_message + alert err.to_s Ncurses.beep return -1 end end def buffer_at index @@ -191,11 +189,12 @@ @current_index = @current_buffer.current_index @curpos = @current_buffer.curpos @title = @current_buffer.title @list = @current_buffer.list end - def perror errmess=$error_message - @form.window.print_error_message errmess + def perror errmess + #@form.window.print_error_message errmess + alert errmess end end # class multitextview ## # Handles multiple buffers, navigation, maintenance etc # Instantiated at startup of MultiTextView