Editor changes

This commit is contained in:
Gregory John Casamento 2021-07-15 17:42:18 -04:00
parent 9cdbd97ad9
commit 67c858017e
3 changed files with 6 additions and 2 deletions

View file

@ -326,7 +326,6 @@
if(dictionaryName != nil)
{
NSString *key = nil;
id value = nil;
NSDictionary *dict;
@ -848,6 +847,7 @@
NSString *tss = [[tView textStorage] string];
if (![tss hasSuffix:@"\n"] && ![tss hasSuffix:@"(gdb) "])
{
chars = @"\x08";
[self typeString: chars];
}
}

View file

@ -67,5 +67,6 @@ extern NSString *PCDBDebuggerStartedNotification;
- (void) setLastFileNameParsed: (NSString *)fname;
- (NSUInteger)lastLineNumberParsed;
- (void)setLastLineNumberParsed: (NSUInteger)num;
- (void)updateEditor;
@end

View file

@ -423,10 +423,13 @@
NSString *fileName = [d objectForKey: @"lastFileName"];
NSNumber *line = [d objectForKey: @"lastLineNumber"];
NSUInteger l = [line integerValue];
[self openFileAtPath: fileName
editorManager: _editorManager
editable: YES];
[self scrollToLineNumber: l];
[self scrollToLineNumber: l];
NSLog(@"]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]] %@:%lu", fileName, l);
}
// ===========================================================================