summaryrefslogtreecommitdiff
path: root/lib/syntax_suggest/scan_history.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2023-05-23 10:05:27 +0900
committerHiroshi SHIBATA <[email protected]>2023-05-23 10:05:47 +0900
commita7d70321005d302d9b5aaa2b83569aa899a5aaa9 ()
treedd890c3152627ad08d1be2a2cbe511e30d701026 /lib/syntax_suggest/scan_history.rb
parentc638ffa700b7a9a28ba29a5b88d934efaba0e575 (diff)
Manually merge syntax_suggest-1.1.0
-rw-r--r--lib/syntax_suggest/scan_history.rb16
1 files changed, 15 insertions, 1 deletions
@@ -3,8 +3,21 @@
module SyntaxSuggest
# Scans up/down from the given block
#
- # You can snapshot a change by committing it and rolling back.
#
class ScanHistory
attr_reader :before_index, :after_index
@@ -25,6 +38,7 @@ module SyntaxSuggest
# Discards any changes that have not been committed
def stash_changes
refresh_index
end
# Discard changes that have not been committed and revert the last commit