[atom] Revert getLastCursor type (#34869)

Apparently, `getLastCursor` returning `undefined` was unintened and evidently was at some point silently fixed, at least in most cases.
This commit is contained in:
Nikolay Yakimov
2019-04-21 10:40:45 -07:00
committed by Pranav Senthilnathan
parent d5e4a8e1e4
commit b63d70da01
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -17,7 +17,6 @@ declare const mouseEvent: MouseEvent;
declare let buffer: Atom.TextBuffer;
declare const color: Atom.Color;
declare let maybeCursor: Atom.Cursor | undefined;
declare let cursor: Atom.Cursor;
declare let cursors: Atom.Cursor[];
declare let decoration: Atom.Decoration;
@@ -2790,7 +2789,7 @@ function testTextEditor() {
editor.moveToBeginningOfPreviousParagraph();
editor.selectLargerSyntaxNode();
editor.selectSmallerSyntaxNode();
maybeCursor = editor.getLastCursor();
cursor = editor.getLastCursor();
str = editor.getWordUnderCursor();
str = editor.getWordUnderCursor({});
+1 -1
View File
@@ -1939,7 +1939,7 @@ export class TextEditor {
moveToBeginningOfPreviousParagraph(): void;
/** Returns the most recently added Cursor. */
getLastCursor(): Cursor | undefined;
getLastCursor(): Cursor;
/** Returns the word surrounding the most recently added cursor. */
getWordUnderCursor(options?: {