Re: Question about File > Open and the "Untitled" buffer

From: Robert <ro....at.web.de>
Date: Tue, 18 May 2010 10:14:41 +0200

One more untitled buffer. If there is an error when processing a file
via user_dofile an Untitled buffer gets created, which leads to the
error message not being "on top". There is a new empty view over the
restored session files.
I attached a patch to handle the file_open events if there was an
error. That way you get the error message on top.

+ if not ret then
+ textadept.print(errmsg)
+ -- close initial 'Untitled' buffer
+ textadept.events.handle('file_opened')
+ end

Robert

-- 
You received this message because you are subscribed to the Google Groups "textadept" group.
To post to this group, send email to textadept.at.googlegroups.com.
To unsubscribe from this group, send email to textadept+unsubscribe.at.googlegroups.com.
For more options, visit this group at http://groups.google.com/group/textadept?hl=en.

Received on Tue 18 May 2010 - 04:14:41 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:43:02 EST