flat assembler
Message board for the users of flat assembler.

Index > IDE Development > FASMW Ctrl+Z!

Author
Thread Post new topic Reply to topic
Teehee



Joined: 05 Aug 2009
Posts: 568
Location: Brazil
Teehee
Please, do not clear Ctrl+Z buffer when we save or compile a file! Sad

_________________
Sorry if bad english.
Post 20 Jun 2010, 22:06
View user's profile Send private message Reply with quote
mindcooler



Joined: 01 Dec 2009
Posts: 423
Location: Västerås, Sweden
mindcooler
+1
Post 20 Jun 2010, 22:25
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
+2.4
Post 20 Jun 2010, 23:35
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr
Teehee,

Probably I should've posted some of my patches already…
Code:
   invoke  VirtualFree,[lparam],0,MEM_RELEASE
;--- IDE\FASMW\FASMW.ASM [877] Don't empty undo buffer on save
;    invoke  SendMessage,[ei.hwnd],EM_EMPTYUNDOBUFFER,0,0
;===
        invoke  SendMessage,[hwnd_status],SB_SETTEXT,1,_null    
It has one drawback though: modified files are saved each time you compile something.
Post 20 Jun 2010, 23:41
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4240
Location: 2018
edfed
just don't clear last 4 or 5 undo entries in buffer. ( a bit more complicated than don't clear all the buffer)
Post 21 Jun 2010, 00:08
View user's profile Send private message Visit poster's website Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr
edfed,

I thought about different approach: store "modified" flag explicitly, probably as high-water-mark to undo stack. This way FASMW wouldn't ask to save already saved file, and "Modified" indicator will reflect the real state of file. Along with "redo" option, this is work-in-progress.
Post 21 Jun 2010, 00:19
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.