Author: rmottola
Date: Tue May  3 00:39:25 2016
New Revision: 39710

URL: http://svn.gna.org/viewcvs/gnustep?rev=39710&view=rev
Log:
Do not permit deletion beyond the new line or the gdb prompt

Modified:
    apps/projectcenter/trunk/ChangeLog
    apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PipeDelegate.m

Modified: apps/projectcenter/trunk/ChangeLog
URL: 
http://svn.gna.org/viewcvs/gnustep/apps/projectcenter/trunk/ChangeLog?rev=39710&r1=39709&r2=39710&view=diff
==============================================================================
--- apps/projectcenter/trunk/ChangeLog  (original)
+++ apps/projectcenter/trunk/ChangeLog  Tue May  3 00:39:25 2016
@@ -3,6 +3,9 @@
        * Modules/Debuggers/ProjectCenter/PCDebugger.h
        * Modules/Debuggers/ProjectCenter/PCDebugger.m
        Refactor path to executablePath.
+
+       * Modules/Debuggers/ProjectCenter/PipeDelegate.m
+       Do not permit deletion beyond the new line or the gdb prompt.
 
 2016-03-23 Riccardo Mottola <[email protected]>
 

Modified: 
apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PipeDelegate.m
URL: 
http://svn.gna.org/viewcvs/gnustep/apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PipeDelegate.m?rev=39710&r1=39709&r2=39710&view=diff
==============================================================================
--- apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PipeDelegate.m     
(original)
+++ apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PipeDelegate.m     
Tue May  3 00:39:25 2016
@@ -400,6 +400,14 @@
           {
             [self typeString: @"\n"];
           }
+       else if (c == 127) // del (usually backspace)
+          {
+           NSString *tss = [[tView textStorage] string];
+           if (![tss hasSuffix:@"\n"] && ![tss hasSuffix:@"(gdb) "])
+             {
+               [self typeString: chars];
+             }
+          }
        else
          {
            [self typeString: chars];


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to