ttscoff / nv

MultiMarkdown version of Notational Velocity with Markdown editing features and preview
http://brettterpstra.com/projects/nvalt
BSD 3-Clause "New" or "Revised" License
1.77k stars 198 forks source link

"Internal Error" on shortcuts to bold/italicize #421

Open itwasabhi opened 7 years ago

itwasabhi commented 7 years ago

When trying using cmd+I or cmd+B on an entire line, I get an *Internal Error message box with the following message:

`Exception Name: NSRangeException Description: *** -[__NSCFString substringFromIndex:]: Index 13 out of bounds; string length 12 User Info: (null)

0 CoreFoundation 0x00007fffab78c52b __exceptionPreprocess + 171 1 libobjc.A.dylib 0x00007fffbfe64cad objc_exception_throw + 48 2 CoreFoundation 0x00007fffab80aa0d +[NSException raise:format:] + 205 3 Foundation 0x00007fffad0f6989 -[NSString substringFromIndex:] + 126 4 nvALT 0x000000010254a646 nvALT + 157254 5 libsystem_trace.dylib 0x00007fffc097403d _os_activity_initiate + 61 6 AppKit 0x00007fffa9aac4e7 -[NSApplication(NSResponder) sendAction:to:from:] + 456 7 AppKit 0x00007fffa95eade2 -[NSMenuItem _corePerformAction] + 324 8 AppKit 0x00007fffa95eab4e -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 114 9 libsystem_trace.dylib 0x00007fffc097403d _os_activity_initiate + 61 10 AppKit 0x00007fffa95e9962 -[NSMenu performKeyEquivalent:] + 367 11 AppKit 0x00007fffa9aab0c9 routeKeyEquivalent + 1024 12 AppKit 0x00007fffa9aa94ad -[NSApplication(NSEvent) sendEvent:] + 3377 13 AppKit 0x00007fffa938f009 -[NSApplication run] + 1002 14 AppKit 0x00007fffa9359a8a NSApplicationMain + 1237 15 libdyld.dylib 0x00007fffc0742255 start + 1`

jonchui commented 7 years ago

Which version are you running? doesn't happen for me with the 2nd latest one: Version 2.2 (122)

itwasabhi commented 7 years ago

Version 2.2.7 (125)