aboutsummaryrefslogtreecommitdiff
path: root/atom/packages/vim-mode/lib/utils.coffee
diff options
context:
space:
mode:
authorBen Beltran <ben@nsovocal.com>2019-03-14 23:19:58 +0100
committerBen Beltran <ben@nsovocal.com>2019-03-14 23:19:58 +0100
commitb009b50e81b6c1d0d691505b5f5c0418f559bfc0 (patch)
tree5fae800e76219eba28634cb236565f9b4bb7a2f7 /atom/packages/vim-mode/lib/utils.coffee
parent4efcafab7f0aa454f9ebe767133654bc9f44e12c (diff)
Remove Atom config
Diffstat (limited to 'atom/packages/vim-mode/lib/utils.coffee')
-rw-r--r--atom/packages/vim-mode/lib/utils.coffee27
1 files changed, 0 insertions, 27 deletions
diff --git a/atom/packages/vim-mode/lib/utils.coffee b/atom/packages/vim-mode/lib/utils.coffee
deleted file mode 100644
index 5a26310..0000000
--- a/atom/packages/vim-mode/lib/utils.coffee
+++ /dev/null
@@ -1,27 +0,0 @@
-{Range} = require 'atom'
-
-module.exports =
- # Public: Determines if a string should be considered linewise or character
- #
- # text - The string to consider
- #
- # Returns 'linewise' if the string ends with a line return and 'character'
- # otherwise.
- copyType: (text) ->
- if text.lastIndexOf("\n") is text.length - 1
- 'linewise'
- else if text.lastIndexOf("\r") is text.length - 1
- 'linewise'
- else
- 'character'
-
- # Public: return a union of two ranges, or simply the newRange if the oldRange is empty.
- #
- # Returns a Range
- mergeRanges: (oldRange, newRange) ->
- oldRange = Range.fromObject oldRange
- newRange = Range.fromObject newRange
- if oldRange.isEmpty()
- newRange
- else
- oldRange.union(newRange)